Skip to content

Commit

Permalink
Track tests in codecov
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Christophe Morin <[email protected]>
  • Loading branch information
JeanChristopheMorinPerso committed Jan 19, 2025
1 parent 2928d20 commit d810ec7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,15 @@ jobs:
- name: Test
run: pipx run nox --error-on-missing-interpreter -s test-${{ matrix.python }}

- name: Codecov upload
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
file: 'junit.xml'
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: 'coverage.xml'
Expand Down
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ addopts =
--cov-report=term-missing
--cov-report=xml
--cov-report=html
--junitxml=junit.xml
--override-ini junit_family=legacy
#--durations=0

norecursedirs = rez_repo
Expand Down

0 comments on commit d810ec7

Please sign in to comment.