Coverage: add detailed report to job summary#655
Merged
AlexWaygood merged 5 commits intopython:mainfrom Aug 23, 2025
Merged
Conversation
Daraan
approved these changes
Aug 22, 2025
Contributor
Daraan
left a comment
There was a problem hiding this comment.
That's great, even adjust the URL of the badge. 🚀Maybe a click for extended report below as an additional addition?
Daraan
reviewed
Aug 22, 2025
Co-authored-by: Daniel Sperber <[email protected]>
AlexWaygood
approved these changes
Aug 23, 2025
| if: ${{ always() && steps.cov_xml_upload.outputs.artifact-id != '' }} | ||
| run: | | ||
| run_url="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}?pr=${{ github.event.pull_request.number }}" | ||
| sed -i "1s|^\(!.*\)$|[\1]($run_url)|" code-coverage-results.md |
Member
There was a problem hiding this comment.
this is clever!
...maybe a bit too clever 😆 the sed command feels complex enough to me that I worry it's maybe not worth the maintenance burden. But it's definitely cool! And I guess we can just get rid of it if it unexpectedly breaks for whatever reason in the future
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 writes a more detailed coverage report to GitHub Actions' "Job Summary": https://github.blog/news-insights/product-news/supercharging-github-actions-with-job-summaries/
See brianschubert#5 (comment) for an example (click on the badge in the comment)
cc @Daraan @AlexWaygood