Commit ea6469c
Add dynamic coverage badge from main branch (#19)
Update CI to extract coverage % on main pushes and store an
\�ndpoint.json\ on a \coverage-data\ branch (same pattern as
[Presidio](https://github.com/microsoft/presidio)). Update README badge
to use shields.io endpoint pointing to that branch.
### Changes
- **ci.yml**: Added 'Update coverage badge' step that runs on push to
main, extracts line coverage from \coverage-summary.json\, generates a
shields.io-compatible \�ndpoint.json\ with color coding, and pushes it
to the \coverage-data\ branch
- **README.md**: Updated coverage badge to use \shields.io/endpoint\
reading from the \coverage-data\ branch
### Notes
- No external services or secrets needed — uses the built-in
\GITHUB_TOKEN\
- \contents: write\ permission scoped only to the coverage job
- Badge color ranges: red (<45%) → yellow → yellowgreen → green →
brightgreen (≥90%)
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent b121690 commit ea6469c
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
| |||
0 commit comments