Skip to content

ci: replace deprecated test-results-action with codecov-action@v6#43

Merged
wenh06 merged 2 commits into
masterfrom
fix/update-codecov-action
May 4, 2026
Merged

ci: replace deprecated test-results-action with codecov-action@v6#43
wenh06 merged 2 commits into
masterfrom
fix/update-codecov-action

Conversation

@wenh06
Copy link
Copy Markdown
Contributor

@wenh06 wenh06 commented Apr 28, 2026

Summary

Replace the deprecated codecov/test-results-action@v1 with codecov/codecov-action@v6 as recommended by the deprecation warning.

Changes

  • Add --cov-report xml:coverage.xml and --junitxml=junit.xml flags to the pytest command to generate the required report files
  • Replace codecov/test-results-action@v1 with codecov/codecov-action@v6 using report_type: test_results
  • Explicitly specify files: coverage.xml for the coverage upload step and files: junit.xml for the test results step

- Add --cov-report xml and --junitxml flags to pytest command
- Replace deprecated codecov/test-results-action@v1 with
  codecov/codecov-action@v5 using report_type: test_results
- Explicitly pass coverage.xml and junit.xml as file targets

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 28, 2026 03:14
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the GitHub Actions CI workflow to follow Codecov’s deprecation guidance by generating explicit coverage and JUnit report files from pytest and uploading them via codecov/codecov-action.

Changes:

  • Extend the pytest command to emit coverage.xml and junit.xml.
  • Switch the Codecov test-results upload from codecov/test-results-action@v1 to codecov/codecov-action with report_type: test_results.
  • Configure Codecov uploads to explicitly target coverage.xml and junit.xml.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 50 to +52
uses: codecov/codecov-action@v6
with:
files: coverage.xml
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (master@e83e86d). Learn more about missing BASE report.
⚠️ Report is 3 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##             master      #43   +/-   ##
=========================================
  Coverage          ?   98.47%           
=========================================
  Files             ?       13           
  Lines             ?     1842           
  Branches          ?        0           
=========================================
  Hits              ?     1814           
  Misses            ?       28           
  Partials          ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wenh06 wenh06 enabled auto-merge April 28, 2026 15:13
@wenh06 wenh06 requested a review from Copilot April 28, 2026 15:13
@wenh06 wenh06 self-assigned this Apr 28, 2026
@wenh06 wenh06 added the github_actions Pull requests that update GitHub Actions code label Apr 28, 2026
@wenh06 wenh06 requested a review from kjs11 April 28, 2026 15:14
@wenh06 wenh06 changed the title ci: replace deprecated test-results-action with codecov-action@v5 ci: replace deprecated test-results-action with codecov-action@v6 Apr 28, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the CI workflow to keep Codecov integration working after the deprecation of codecov/test-results-action@v1, by generating explicit coverage and JUnit report artifacts and uploading them via codecov/codecov-action.

Changes:

  • Extend the pytest invocation to emit coverage.xml and junit.xml.
  • Switch the test-results upload step from codecov/test-results-action@v1 to codecov/codecov-action.
  • Explicitly configure uploaded files: for coverage and test results (with report_type: test_results for the latter).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 50 to +52
uses: codecov/codecov-action@v6
with:
files: coverage.xml
@wenh06 wenh06 added this pull request to the merge queue May 4, 2026
Merged via the queue into master with commit d562f49 May 4, 2026
15 checks passed
@kjs11 kjs11 deleted the fix/update-codecov-action branch May 4, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants