Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ jobs:
if: env.CODECOV_TOKEN != ''
uses: codecov/codecov-action@v7
with:
file: ${{ steps.python_layout.outputs.root }}/coverage.xml
files: ${{ steps.python_layout.outputs.root }}/coverage.xml
token: ${{ env.CODECOV_TOKEN }}
disable_search: true
fail_ci_if_error: true
Expand Down
3 changes: 3 additions & 0 deletions changelog.d/20260722_issue_34_codecov_v7_input.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Fixed

- Use the Codecov v7 `files` input so the generated coverage report is uploaded.
3 changes: 2 additions & 1 deletion tests/test_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ def test_release_workflow_gates_codecov_upload_on_token() -> None:
assert "::notice::" in skip_step
assert "if: env.CODECOV_TOKEN != ''" in upload_step
assert "uses: codecov/codecov-action@v7" in upload_step
assert "file: ${{ steps.python_layout.outputs.root }}/coverage.xml" in upload_step
assert "files: ${{ steps.python_layout.outputs.root }}/coverage.xml" in upload_step
assert "\n file:" not in upload_step
assert "token: ${{ env.CODECOV_TOKEN }}" in upload_step
assert "disable_search: true" in upload_step
assert "fail_ci_if_error: true" in upload_step
Expand Down
Loading