Skip to content

feat: add Python code coverage reporting with CI integration - #59

Open
reubano with code-coverage-agent[bot] wants to merge 3 commits into
mainfrom
code-coverage-agent/setup-code-coverage-reporting
Open

feat: add Python code coverage reporting with CI integration#59
reubano with code-coverage-agent[bot] wants to merge 3 commits into
mainfrom
code-coverage-agent/setup-code-coverage-reporting

Conversation

@code-coverage-agent

@code-coverage-agent code-coverage-agent AI commented Aug 4, 2026

Copy link
Copy Markdown

Adds Cobertura XML coverage reporting for the riko package, integrated into the existing CI workflow, with upload to GitHub's code coverage API for PR annotations and default-branch baseline comparison.

Coverage configuration (pyproject.toml)

  • New [tool.coverage] sections: instruments the riko source tree, omits CLI entry points and the test mock backend, outputs coverage.xml (Cobertura format)
  • Uses pytest-cov (already a project dependency) — no new dependencies added

CI integration (.github/workflows/ci.yml)

  • Adds a Test with coverage step scoped to the py3.12 / optional=true matrix entry (all extras installed — most representative configuration); runs independently of the existing --no-cov test step so the full matrix is unaffected
  • Adds an artifact upload step (fork-PR guarded) to pass coverage.xml between jobs
  • Adds a new upload-coverage-python job with code-quality: write permission that downloads the artifact and calls actions/upload-code-coverage@v1
  • Pins actions/download-artifact to v4.1.3 to address an arbitrary file write vulnerability (affected: >= 4.0.0, < 4.1.3)

code-coverage-agent[bot] and others added 2 commits August 4, 2026 18:57
Co-authored-by: reubano <157864+reubano@users.noreply.github.com>
…write CVE

Co-authored-by: reubano <157864+reubano@users.noreply.github.com>
@code-coverage-agent code-coverage-agent AI changed the title [WIP] Set up code coverage reporting in CI workflows feat: add Python code coverage reporting with CI integration Aug 4, 2026
Code Coverage Agent finished work on behalf of reubano August 4, 2026 18:59
@code-coverage-agent
code-coverage-agent AI marked this pull request as ready for review August 4, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants