We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d46901c commit a13f7bbCopy full SHA for a13f7bb
.github/workflows/tests.yaml
@@ -89,12 +89,15 @@ jobs:
89
run: rez-python -m pip install pytest-cov parameterized
90
91
- name: Run tests
92
+ id: tests
93
run: rez-selftest -v -- --cov=rez --cov-report=xml:coverage.xml
94
env:
95
_REZ_ENSURE_TEST_SHELLS: ${{ matrix.shells }}
96
97
- name: Upload coverage reports to Codecov
98
uses: codecov/codecov-action@v4
99
+ # Run on both success and failure, but only if coverage.xml exists.
100
+ if: ${{ hashFiles('coverage.xml') != '' && (steps.tests.outcome == 'success' || steps.tests.outcome == 'failure') }}
101
with:
102
slug: AcademySoftwareFoundation/rez
103
files: 'coverage.xml'
0 commit comments