Commit b121690
Add dynamic coverage badge from main branch (#18)
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 6a50a5e commit b121690
2 files changed
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
47 | 67 | | |
48 | 68 | | |
49 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments