Skip to content

Commit 54e85f1

Browse files
Marat Saidovclaude
andcommitted
Add Codecov integration for coverage reporting
- Generate XML coverage report for Codecov - Upload coverage using codecov-action@v4 - Requires CODECOV_TOKEN secret in repository settings Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 0ecae07 commit 54e85f1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,12 @@ jobs:
3030

3131
- name: Run tests with coverage
3232
run: |
33-
python -m pytest tests/ -v --tb=short --cov=src --cov-report=term-missing
33+
python -m pytest tests/ -v --tb=short --cov=src --cov-report=term-missing --cov-report=xml
34+
35+
- name: Upload coverage to Codecov
36+
uses: codecov/codecov-action@v4
37+
with:
38+
token: ${{ secrets.CODECOV_TOKEN }}
39+
files: ./coverage.xml
40+
fail_ci_if_error: false
41+
verbose: true

0 commit comments

Comments
 (0)