Skip to content

Commit b740ea0

Browse files
committed
Attempt at fixing Codecov coverage analysis
1 parent 25612d0 commit b740ea0

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/tests.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,22 @@ jobs:
4141
- name: Run isolated tests
4242
run: uv run inv pytest --junit --no-pty --isolated
4343

44-
- name: Upload coverage reports to Codecov with GitHub Action on Python 3.13 for each OS
45-
uses: codecov/codecov-action@v3
46-
if: ${{ matrix.python-version == '3.13' }}
44+
- name: Upload test results to Codecov
45+
if: ${{ !cancelled() }}
46+
uses: codecov/test-results-action@v1
47+
with:
48+
files: ./junit.xml,!./cache
49+
flags: python${{ matrix.python-version }}
50+
name: codecov-umbrella-test-results
51+
token: ${{ secrets.CODECOV_TOKEN }}
52+
- name: Upload coverage to Codecov
53+
uses: codecov/codecov-action@v4
54+
with:
55+
directory: ./coverage/reports/
56+
env_vars: OS,PYTHON
57+
fail_ci_if_error: true
58+
files: ./coverage1.xml,./coverage2.xml,!./cache
59+
flags: unittests
60+
name: codecov-umbrella
61+
token: ${{ secrets.CODECOV_TOKEN }}
62+
verbose: true

0 commit comments

Comments
 (0)