ci: add coverage.py reporting #278

Merged
didericis merged 7 commits from issue-277-coverage-ci into main 2026-06-25 16:06:42 -04:00
Collaborator

Adds coverage.py to dev requirements, wires the unit job in CI to run under coverage, and emits a text coverage report.

Validation:

  • python3 -m coverage run -m unittest discover -t . -s tests/unit -v
  • python3 -m coverage report -m

Closes #277

Adds coverage.py to dev requirements, wires the unit job in CI to run under coverage, and emits a text coverage report. Validation: - `python3 -m coverage run -m unittest discover -t . -s tests/unit -v` - `python3 -m coverage report -m` Closes #277
Owner

Should add a badge for the results in the update-badges gitea workflow

Should add a badge for the results in the `update-badges` gitea workflow
Author
Collaborator

Done in 75a50987d3/.gitea/workflows/update-badges.yml. Added the README coverage badge and wired update-badges to run unit coverage, extract the total, and include it in the quality badge update commit.

Done in https://gitea.dideric.is/didericis/bot-bottle/src/commit/75a50987d3b7f5752c4bbceb8307c9f989ce4412/.gitea/workflows/update-badges.yml. Added the README coverage badge and wired `update-badges` to run unit coverage, extract the total, and include it in the quality badge update commit.
didericis force-pushed issue-277-coverage-ci from c45423f7f3 to a14bcf1a21 2026-06-25 05:02:36 -04:00 Compare
didericis force-pushed issue-277-coverage-ci from a14bcf1a21 to c6c507679c 2026-06-25 05:11:20 -04:00 Compare
didericis added 6 commits 2026-06-25 15:04:42 -04:00
didericis force-pushed issue-277-coverage-ci from 5f3a6822ec to 45a096413f 2026-06-25 15:04:43 -04:00 Compare
didericis added 1 commit 2026-06-25 15:13:50 -04:00
ci(badges): add coverage percentage to quality badges
test / integration (pull_request) Successful in 16s
test / unit (pull_request) Successful in 43s
test / unit (push) Successful in 44s
lint / lint (push) Successful in 1m49s
test / integration (push) Successful in 18s
Update Quality Badges / update-badges (push) Successful in 1m53s
50f5b3aa7f
The update-badges workflow only refreshed pylint and pyright. Add a
coverage step that runs the unit suite under coverage.py, extracts the
TOTAL percentage, and updates a new coverage badge in the README.
Also trigger the workflow on .coveragerc changes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NkwFXLFff9PYPy4wgVBJp9
didericis approved these changes 2026-06-25 16:06:28 -04:00
didericis merged commit 50f5b3aa7f into main 2026-06-25 16:06:42 -04:00
didericis deleted branch issue-277-coverage-ci 2026-06-25 16:06:43 -04:00
Sign in to join this conversation.