Skip to content

chore: add pytest-cov coverage reporting and update GitHub Actions#154

Merged
texastony merged 5 commits into
stagingfrom
tonyknap/pytest-coverage
Mar 20, 2026
Merged

chore: add pytest-cov coverage reporting and update GitHub Actions#154
texastony merged 5 commits into
stagingfrom
tonyknap/pytest-coverage

Conversation

@texastony

@texastony texastony commented Mar 17, 2026

Copy link
Copy Markdown

Changes

pytest-cov for line coverage reporting

  • Added pytest-cov to test dependencies
  • make test-unit creates .coverage report with term-missing output
  • make test-integration appends to the .coverage report
  • make test (both) produces combined coverage
  • Added [tool.coverage] config to pyproject.toml
  • CI uploads HTML coverage report as artifact
  • Added .coverage and coverage-report/ to .gitignore

Coverage threshold

  • CI fails if combined coverage drops below 93% (--fail-under=93)
  • Threshold check runs after HTML report upload so artifact is always available

GitHub Actions version updates

  • actions/checkout: v4/v5 → v6
  • actions/cache: v4 → v5
  • actions/upload-artifact: v4 → v7
  • actions/setup-python: v5 → v6
  • aws-actions/configure-aws-credentials: v4 → v6

@texastony texastony marked this pull request as draft March 17, 2026 23:00
@texastony texastony force-pushed the tonyknap/pytest-coverage branch from ad173c3 to 9a7e0a4 Compare March 17, 2026 23:03
…load-artifact to v7, and actions/setup-python to v6
@texastony texastony changed the title chore: add pytest-cov for line coverage reporting chore: add pytest-cov coverage reporting and update GitHub Actions Mar 17, 2026
@texastony texastony marked this pull request as ready for review March 17, 2026 23:22
@texastony texastony requested a review from kessplas March 17, 2026 23:22
@kessplas

Copy link
Copy Markdown
Contributor

General comment: can we set a threshold such that PRs are blocked when coverage decreases?

@texastony texastony merged commit e70cf78 into staging Mar 20, 2026
5 checks passed
@texastony texastony deleted the tonyknap/pytest-coverage branch March 20, 2026 19:13
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