Skip to content

Commit 4d071a8

Browse files
committed
ci: Add codecov to unit-tests.yml
1 parent 2c4f1a7 commit 4d071a8

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/unit-tests.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,13 @@ jobs:
4040
- name: Install dependencies
4141
run: uv sync --dev
4242

43-
- name: Run tests
44-
run: uv run pytest
43+
- name: Run tests with coverage
44+
run: uv run pytest --cov --cov-report=xml
4545

46-
- name: Upload coverage report
47-
uses: actions/upload-artifact@v4
46+
- name: Upload coverage to Codecov
47+
uses: codecov/codecov-action@v4
4848
with:
49-
name: coverage-report-${{ matrix.python-version }}
50-
path: coverage.xml
51-
if-no-files-found: ignore
49+
file: ./coverage.xml
50+
flags: python-${{ matrix.python-version }}
51+
name: codecov-umbrella
52+
fail_ci_if_error: true

0 commit comments

Comments
 (0)