Skip to content

Commit 910736b

Browse files
authored
Merge pull request #2659 from alicevision/ci/codecov-tests
[ci] Codecov: enable support for test run reports
2 parents 91885af + 0f1cde1 commit 910736b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,16 @@ jobs:
5353
- name: Test with pytest
5454
run: |
5555
pytest tests/
56-
pytest --cov --cov-report=xml
56+
pytest --cov --cov-report=xml --junitxml=junit.xml
5757
- name: Upload results to Codecov
5858
uses: codecov/codecov-action@v5
5959
with:
6060
token: ${{ secrets.CODECOV_TOKEN }}
61+
- name: Upload test results to Codecov
62+
if: ${{ !cancelled() }}
63+
uses: codecov/test-results-action@v1
64+
with:
65+
token: ${{ secrets.CODECOV_TOKEN }}
6166

6267
build-windows:
6368
runs-on: windows-latest

0 commit comments

Comments
 (0)