Replace deprecated codecov/test-results-action - #11
Merged
Merged
Conversation
Codecov deprecated `test-results-action` in favour of running `codecov-action` a second time with `report_type: test_results`. Reuses the already SHA-pinned codecov-action@v7.0.0. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The workflow change is minimal, uses the same pinned Codecov action SHA already in use for coverage, and matches the PR’s stated intent to eliminate the deprecation warning.
Pull request overview
Updates the CI workflow to remove use of Codecov’s deprecated codecov/test-results-action by uploading JUnit test results via a second invocation of codecov/codecov-action, aligning the pipeline with Codecov’s current recommended approach while keeping the coverage upload unchanged.
Changes:
- Replaced
codecov/test-results-actionwithcodecov/codecov-action@v7.0.0for test results upload. - Added
report_type: test_resultsto ensure the second upload is treated as test results. - Continued uploading
junit.xmlfrom the pytest run as the test-results artifact.
File summaries
| File | Description |
|---|---|
| .github/workflows/ci.yml | Switches the “Upload test results” step to codecov/codecov-action with report_type: test_results, removing the deprecated action usage. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Codecov deprecated
codecov/test-results-actionin favour of runningcodecov-actiona second time withreport_type: test_results(CI wasprinting a deprecation annotation on every run).
The "Upload test results to Codecov" step now uses
codecov/codecov-action@v7.0.0(same SHA already pinned for the coverageupload) with
report_type: test_resultsandfiles: junit.xml. The coveragestep is unchanged.
No code or behaviour change.
Checklist
ruff check .andruff format --check .pass — unchanged, no code touchedmypypassespytestpasses; coverage stays >= 85%CHANGELOG.mdupdated — n/a (CI-internal, no user impact)README.md/docs/*.mdupdated — n/aThe deprecation annotation should be gone from this PR's own CI run.
🤖 Generated with Claude Code