Update CI workflow for test results and coverage upload#1929
Merged
openminddev merged 2 commits intomainfrom Jan 27, 2026
Merged
Update CI workflow for test results and coverage upload#1929openminddev merged 2 commits intomainfrom
openminddev merged 2 commits intomainfrom
Conversation
Switch to using codecov/test-results-action for uploading test results and adjust coverage report upload conditions. Add junit.xml to .gitignore to prevent committing test result files.
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request modernizes the CI/CD pipeline's test reporting by migrating from artifact-based uploads to Codecov's native test results integration, improving test compatibility and reducing workflow complexity.
Changes:
- Modified pytest execution to generate JUnit XML output with legacy family format for better tool compatibility
- Replaced artifact uploads with Codecov's test-results-action for direct test result integration
- Changed upload conditions from
always()to!cancelled()to prevent uploads when workflows are manually cancelled
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Replaces codecov/test-results-action@v1 with codecov/codecov-action@v5 and adds the report_type parameter for uploading test results.
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.
This pull request updates the unit test workflow configuration to improve test reporting and artifact handling. The main changes involve switching to Codecov's test results action, refining when reports are uploaded, and adjusting test output formats.
Unit test workflow improvements:
junit.xml) and set the JUnit family to legacy, which can improve compatibility with reporting tools.always()to only run if the workflow is not cancelled, making the workflow more efficient.test-results-action, which uploads the JUnit XML test results directly to Codecov..pytest_cache/as artifacts, streamlining the workflow and reducing unnecessary uploads.