Commit b32e386
authored
SEP-996: Show coverage evolution in PR coverage report comments (#546)
- Adds `.github/workflows/coverage-main.yml` that runs the test suite on
pushes to `main` and invokes
`py-cov-action/python-coverage-comment-action`, so main-branch coverage
JSON gets committed to the `python-coverage-comment-action-data` branch.
Permissions follow least-privilege: the workflow defaults to `contents:
read` and only the `store-coverage` job elevates to `contents: write`.
- Subsequent PR coverage comments will render the evolution badge (e.g.
`83% → 84%`) instead of `"Previous coverage rate is not available,
cannot report on evolution"`.
- Reuses the existing `setup-python-job` composite action and the same
action SHA (v3.40) already pinned in `python.yaml`. The existing PR-side
two-workflow pattern is untouched.1 parent 4071b02 commit b32e386
1 file changed
Lines changed: 40 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
0 commit comments