Skip to content

[FEATURE] Add code coverage reporting to CI #52

Closed

Description

@c-vigo

Description

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

  1. Add pytest-cov to test dependencies
  2. Configure coverage settings in pyproject.toml ([tool.coverage.*] sections)
  3. Add a coverage step to the project-checks CI job that runs project-level tests with --cov
  4. Generate XML + terminal reports, upload XML as artifact, and write a summary to $GITHUB_STEP_SUMMARY
  5. 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
  • fail_under threshold enforced

Refs: #37

Activity

  1. added
    feature
    on Feb 11, 2026
  2. zhanglin2603 commented on Feb 17, 2026

    @zhanglin2603

    Hey, I went over #52 and can take this on.

    • 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.
  3. added a commit that references this issue on Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions