Skip to content

Commit 868e67e

Browse files
woutervhclaude
andcommitted
fix: correct codecov upload paths in testing workflow
Align pytest coverage output paths with codecov input paths: - Change from generic directory search to explicit file path - Add explicit output paths: html:var/coverage/html and xml:var/coverage/pytest-cobertura.xml - Add term-missing for better coverage output - Fixes "No coverage reports found" error 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent 5e8cb92 commit 868e67e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/testing.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,15 @@ jobs:
9494
run: uv sync --all-groups
9595

9696
- name: Run tests
97-
run: uv run pytest tests --color=yes --cov=src --cov-fail-under=50 --cov-report html --cov-report xml --cov-report term -v
97+
run: uv run pytest tests --color=yes --cov=src --cov-fail-under=50 --cov-report html:var/coverage/html --cov-report xml:var/coverage/pytest-cobertura.xml --cov-report term-missing -v
9898

9999
# repo: https://github.com/codecov/codecov-action
100100
# releases: https://github.com/codecov/codecov-action/tags
101101
- name: "Upload coverage to Codecov"
102102
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2 released on 09-12-2025
103103
with:
104104
fail_ci_if_error: true # false is default
105-
# files: var/coverage/coverage.xml # optional
106-
directory: var/coverage
105+
files: var/coverage/pytest-cobertura.xml
107106
flags: unittests # optional
108107
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
109108
verbose: true # false is default

0 commit comments

Comments
 (0)