ci: store pytest results as artifacts in GitLab and GitHub CI#73
Merged
Conversation
- GitLab CI: run pytest with --junitxml and expose report.xml via artifacts.reports.junit so results appear in the GitLab test report UI - GitHub Actions: new workflow that installs Poetry, runs pytest with --junitxml, uploads report.xml via actions/upload-artifact, and publishes a check-run summary via dorny/test-reporter https://claude.ai/code/session_01SCWaAYTAKQdf4DpfiuczAM
Add pytest-cov to dev dependencies and run pytest with --cov=pleque --cov-report=xml:coverage.xml in both pipelines. - GitLab CI: exposes coverage.xml via artifacts.reports.coverage_report (Cobertura format) so GitLab renders line-level coverage diffs in MRs - GitHub Actions: uploads coverage.xml as artifact, publishes a coverage summary badge+table via irongut/CodeCoverageSummary, and posts a sticky comment on PRs with the coverage breakdown https://claude.ai/code/session_01SCWaAYTAKQdf4DpfiuczAM
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.
artifacts.reports.junit so results appear in the GitLab test report UI
--junitxml, uploads report.xml via actions/upload-artifact, and
publishes a check-run summary via dorny/test-reporter
https://claude.ai/code/session_01SCWaAYTAKQdf4DpfiuczAM