Commit dbdcde1
authored
CI/code coverage improvement (#71)
* fix(ci): Remove unsupported branch coverage
* feat(ci): Compress uncovered lines into ranges
AI-assisted-by: Gemini 2.5 Pro
correct readme
feat(ci): check for uncovered lines in PRs
Adds a new step to the CI workflow to check for uncovered lines in pull requests.
This is done by:
- A new Python script that compares the git diff of the PR with the Cobertura coverage report.
- The script outputs a list of uncovered lines that are part of the PR's changes.
- The CI workflow is updated to run this script and post the results as a comment on the PR.
- The PR comment is updated on subsequent pushes to avoid spamming.
AI-assisted-by: Gemini 2.5 Pro
fix(ci): always post new coverage comment
Removes the logic for editing existing PR comments for code coverage.
The CI will now post a new comment on every run, as requested.
This resolves the error from the previous CI run where the '--edit' flag
for 'gh pr comment' was causing a failure.
AI-assisted-by: Gemini 2.5 Pro
* correct script path1 parent fb0546a commit dbdcde1
3 files changed
Lines changed: 146 additions & 9 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 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
247 | 246 | | |
248 | 247 | | |
249 | 248 | | |
| |||
269 | 268 | | |
270 | 269 | | |
271 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
272 | 292 | | |
273 | 293 | | |
274 | 294 | | |
275 | | - | |
276 | 295 | | |
277 | 296 | | |
278 | 297 | | |
279 | | - | |
280 | | - | |
| 298 | + | |
| 299 | + | |
281 | 300 | | |
282 | 301 | | |
283 | 302 | | |
| |||
295 | 314 | | |
296 | 315 | | |
297 | 316 | | |
298 | | - | |
299 | 317 | | |
300 | 318 | | |
301 | 319 | | |
| |||
304 | 322 | | |
305 | 323 | | |
306 | 324 | | |
307 | | - | |
308 | | - | |
| 325 | + | |
| 326 | + | |
309 | 327 | | |
310 | | - | |
| 328 | + | |
311 | 329 | | |
312 | 330 | | |
313 | 331 | | |
| |||
330 | 348 | | |
331 | 349 | | |
332 | 350 | | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
333 | 354 | | |
334 | 355 | | |
335 | 356 | | |
336 | 357 | | |
337 | 358 | | |
338 | 359 | | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
339 | 366 | | |
340 | 367 | | |
341 | 368 | | |
342 | 369 | | |
343 | 370 | | |
344 | 371 | | |
345 | 372 | | |
| 373 | + | |
| 374 | + | |
346 | 375 | | |
| 376 | + | |
| 377 | + | |
347 | 378 | | |
| 379 | + | |
348 | 380 | | |
349 | 381 | | |
350 | 382 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
438 | | - | |
| 438 | + | |
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
| |||
0 commit comments