Skip to content

Replace deprecated codecov/test-results-action - #11

Merged
cjunius merged 1 commit into
mainfrom
ci/codecov-test-results-report-type
Aug 30, 2026
Merged

cjunius merged 1 commit into
mainfrom
ci/codecov-test-results-report-type

Conversation

@cjunius

@cjunius cjunius commented Aug 30, 2026

Copy link
Copy Markdown
Owner

Summary

Codecov deprecated codecov/test-results-action in favour of running
codecov-action a second time with report_type: test_results (CI was
printing 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 coverage
upload) with report_type: test_results and files: junit.xml. The coverage
step is unchanged.

No code or behaviour change.

Checklist

  • ruff check . and ruff format --check . pass — unchanged, no code touched
  • mypy passes
  • pytest passes; coverage stays >= 85%
  • Tests added or updated — n/a
  • CHANGELOG.md updated — n/a (CI-internal, no user impact)
  • README.md / docs/*.md updated — n/a

The deprecation annotation should be gone from this PR's own CI run.

🤖 Generated with Claude Code

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>
Copilot AI lite review requested due to automatic review settings August 30, 2026 13:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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-action with codecov/codecov-action@v7.0.0 for test results upload.
  • Added report_type: test_results to ensure the second upload is treated as test results.
  • Continued uploading junit.xml from 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.

@cjunius
cjunius merged commit 08d6b52 into main Aug 30, 2026
7 checks passed
@cjunius
cjunius deleted the ci/codecov-test-results-report-type branch August 30, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants