ci: replace deprecated test-results-action with codecov-action@v6#43
Conversation
- 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>
There was a problem hiding this comment.
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.xmlandjunit.xml. - Switch the Codecov test-results upload from
codecov/test-results-action@v1tocodecov/codecov-actionwithreport_type: test_results. - Configure Codecov uploads to explicitly target
coverage.xmlandjunit.xml.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| uses: codecov/codecov-action@v6 | ||
| with: | ||
| files: coverage.xml |
Codecov Report✅ All modified and coverable lines are covered by tests. 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. |
There was a problem hiding this comment.
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.xmlandjunit.xml. - Switch the test-results upload step from
codecov/test-results-action@v1tocodecov/codecov-action. - Explicitly configure uploaded
files:for coverage and test results (withreport_type: test_resultsfor the latter).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| uses: codecov/codecov-action@v6 | ||
| with: | ||
| files: coverage.xml |
Summary
Replace the deprecated
codecov/test-results-action@v1withcodecov/codecov-action@v6as recommended by the deprecation warning.Changes
--cov-report xml:coverage.xmland--junitxml=junit.xmlflags to the pytest command to generate the required report filescodecov/test-results-action@v1withcodecov/codecov-action@v6usingreport_type: test_resultsfiles: coverage.xmlfor the coverage upload step andfiles: junit.xmlfor the test results step