Skip to content

Commit e07f1e4

Browse files
authored
Add test results reporting for Codecov
Signed-off-by: GitHub <noreply@github.com>
1 parent 8d870cc commit e07f1e4

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.coverage

68 KB
Binary file not shown.

.github/workflows/python.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,15 @@ jobs:
5353
python -m pip install --editable scratch/projects/one_two_three
5454
5555
- name: "Run tests"
56-
run: python -m coverage run -m pytest
56+
run: python -m coverage run -m pytest --junitxml=junit.xml -o junit_family=legacy
5757

5858
- name: "Upload coverage reports to Codecov"
5959
uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7
6060
env:
6161
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
62+
63+
- name: Upload test results to Codecov
64+
if: ${{ !cancelled() }}
65+
uses: codecov/test-results-action@9739113ad922ea0a9abb4b2c0f8bf6a4aa8ef820 # v1.0.1
66+
with:
67+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)