Skip to content

Commit

Permalink
Upload test coverage even if tests fail (#1751)
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Christophe Morin <[email protected]>
  • Loading branch information
JeanChristopheMorinPerso authored May 12, 2024
1 parent d46901c commit a13f7bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,15 @@ jobs:
run: rez-python -m pip install pytest-cov parameterized

- name: Run tests
id: tests
run: rez-selftest -v -- --cov=rez --cov-report=xml:coverage.xml
env:
_REZ_ENSURE_TEST_SHELLS: ${{ matrix.shells }}

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
# Run on both success and failure, but only if coverage.xml exists.
if: ${{ hashFiles('coverage.xml') != '' && (steps.tests.outcome == 'success' || steps.tests.outcome == 'failure') }}
with:
slug: AcademySoftwareFoundation/rez
files: 'coverage.xml'
Expand Down

0 comments on commit a13f7bb

Please sign in to comment.