You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add code coverage instrumentation and reporting to the CI pipeline for project-level Python tests.
Parent Issue
Sub-issue of #37 (point 4: Default GitHub Actions / CI — code coverage).
Problem Statement
The test-cov recipe in justfile.base references --cov but pytest-cov is not in dependencies, there is no coverage configuration, and CI does not generate or report coverage. There is no visibility into how much of the codebase is exercised by tests.
Proposed Solution
Add pytest-cov to test dependencies
Configure coverage settings in pyproject.toml ([tool.coverage.*] sections)
Add a coverage step to the project-checks CI job that runs project-level tests with --cov
Generate XML + terminal reports, upload XML as artifact, and write a summary to $GITHUB_STEP_SUMMARY
Set a fail_under threshold to prevent coverage regressions
Scope
In scope: Project-level tests (test_utils, test_release_cycle, test_validate_commit_msg, test_check_action_pins) covering scripts/ and docs/
Out of scope (future): Image/integration tests (run inside containers), Codecov/Coveralls integration
Acceptance Criteria
pytest-cov in test dependencies
Coverage configuration in pyproject.toml
just test-cov works locally
CI project-checks job generates and uploads coverage report
Coverage summary appears in GitHub Actions job summary
My read: this is primarily a core implementation task tied to "[FEATURE] Add code coverage reporting to CI".
I will focus on these issue-specific points first: feature, code, coverage.
First I will reproduce and confirm expected behavior for the core implementation path.
Then I will implement the fix with targeted tests and keep scope tight (good confidence).
I will share a working PR update fast (24h for first patch, 48h for final polish) with verification notes.
If this approach works for you, I can start now.
Activity
ci(coverage): add code coverage reporting to test action
test(coverage): expand unit tests and raise coverage threshold to 50%
zhanglin2603 commentedon Feb 17, 2026
Hey, I went over #52 and can take this on.
If this approach works for you, I can start now.
chore: release 0.3.0 (#270)