Skip to content

Commit

Permalink
Merge remote-tracking branch 'richtja/codecov'
Browse files Browse the repository at this point in the history
Signed-off-by: Cleber Rosa <[email protected]>
  • Loading branch information
clebergnu committed Oct 15, 2024
2 parents ae1b209 + df9d824 commit 19ab1e2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/push_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ jobs:
strategy:
matrix:
python-version: [3.11]
env:
CC_TEST_REPORTER_ID: "387887b88a76f31c2c376219fc749689ea5975c8fe7fcd9609f1dcc139e053a6"

steps:
- run: echo "Job triggered by a ${{ github.event_name }} event on branch is ${{ github.ref }} in repository is ${{ github.repository }}, runner on ${{ runner.os }}"
Expand All @@ -90,16 +88,14 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: |
pip install -r requirements-dev.txt
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- name: Run pre script
run: ./cc-test-reporter before-build
run: pip install -r requirements-dev.txt
- name: Avocado build
run: python setup.py develop --user
- name: Run script
run: |
python setup.py develop --user
./selftests/run_coverage
- name: Run post script
run: ./cc-test-reporter after-build --debug
- run: echo "🥑 This job's status is ${{ job.status }}."
run: ./selftests/run_coverage
- name: Push results to codecov
uses: codecov/codecov-action@v4
with:
files: ./coverage1.xml
token: ${{ secrets.CODECOV_TOKEN }}
- run: echo "🥑 This job's status is ${{ job.status }}."
12 changes: 12 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
coverage:
status:
project:
default:
informational: true
patch:
default:
informational: true


# When modifying this file, please validate using
# curl -X POST --data-binary @codecov.yml https://codecov.io/validate

0 comments on commit 19ab1e2

Please sign in to comment.