Extract coverage badge generation to dedicated workflow using rhiza-tools#592
Open
Extract coverage badge generation to dedicated workflow using rhiza-tools#592
Conversation
Co-authored-by: tschm <2046079+tschm@users.noreply.github.com>
Co-authored-by: tschm <2046079+tschm@users.noreply.github.com>
Co-authored-by: tschm <2046079+tschm@users.noreply.github.com>
Co-authored-by: tschm <2046079+tschm@users.noreply.github.com>
Member
|
@copilot: no need to include the construction in rhiza_book.yml |
Copilot
AI
changed the title
[WIP] Add coverage badge to its own workflow
Extract coverage badge generation into dedicated workflow
Feb 8, 2026
Co-authored-by: tschm <2046079+tschm@users.noreply.github.com>
Contributor
Author
Member
|
@copilot: but the actual construction of the badge is also a command in rhiza-tools. Use that instead of having the py file in utils |
Co-authored-by: tschm <2046079+tschm@users.noreply.github.com>
Copilot
AI
changed the title
Extract coverage badge generation into dedicated workflow
Extract coverage badge generation to dedicated workflow using rhiza-tools
Feb 8, 2026
Collaborator
|
Does this need to be a workflow? |
Member
|
I think so. It's hidden in the book workflow. So better to be more isolated as some repos have tests but no book |
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.
Coverage badge generation was embedded in the
make booktarget. This extracts it to a standalone workflow using the built-inrhiza-toolscommand.Changes
New workflow
.github/workflows/rhiza_coverage_badge.ymluvx "rhiza-tools>=0.2.0" generate-coverage-badgeModified
.rhiza/make.d/book.mkDeleted
.rhiza/utils/generate_coverage_badge.pyExample
Badge generation now uses the official rhiza-tools CLI:
uvx "rhiza-tools>=0.2.0" generate-coverage-badge \ --coverage-json _tests/coverage.json \ --output _badge/coverage-badge.jsonPreviously required custom Python script maintained separately.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.