Skip to content

Add coverage badge and coverage threshold#637

Merged
gijzelaerr merged 4 commits intomasterfrom
feature/coverage-badge
Mar 20, 2026
Merged

Add coverage badge and coverage threshold#637
gijzelaerr merged 4 commits intomasterfrom
feature/coverage-badge

Conversation

@gijzelaerr
Copy link
Owner

Summary

  • Replace artifact upload with Codecov integration (codecov/codecov-action@v5) in the test workflow, uploading from the Python 3.13 / ubuntu-24.04 matrix job
  • Add a codecov coverage badge to the top of README.rst
  • Set a coverage threshold of 80% in both pyproject.toml ([tool.coverage.report]) and codecov.yml

Closes #619

Test plan

  • All 447 tests pass locally (uv run pytest tests/)
  • Verify the Codecov upload step succeeds in CI after merging
  • Verify the badge renders on the README

🤖 Generated with Claude Code

gijzelaerr and others added 4 commits March 19, 2026 16:57
- Replace artifact upload with codecov/codecov-action@v5 in test workflow
- Add codecov badge to README.rst
- Add coverage threshold of 80% in pyproject.toml and codecov.yml

Closes #619

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Current coverage is 78% — set threshold to 75% to provide a safety net
without failing CI. Can be raised as coverage improves.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add PyPI version, Python versions, license, CI status, and Read the
Docs badges alongside the existing Codecov badge for a professional
landing page.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov v5 requires a token for protected branches, causing
"Token required because branch is protected" errors that block CI.
Coverage upload is best-effort, not a gate.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gijzelaerr gijzelaerr merged commit 4c52bcb into master Mar 20, 2026
37 checks passed
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.

Add coverage badge and coverage threshold

1 participant