Skip to content

ci: add test coverage enforcement to all library packages#41

Closed
rororowyourboat wants to merge 1 commit intomainfrom
ci/test-coverage
Closed

ci: add test coverage enforcement to all library packages#41
rororowyourboat wants to merge 1 commit intomainfrom
ci/test-coverage

Conversation

@rororowyourboat
Copy link
Collaborator

Summary

  • Adds pytest-cov>=6.0 to dev dependencies for gds-viz, gds-games, gds-stockflow, and gds-control
  • Configures 80% coverage threshold (matching gds-framework) for all four packages
  • Coverage reports automatically via pytest addopts — no CI workflow changes needed
  • Skips gds-examples (tutorial package, not a library)

Package coverage config

Package Source Threshold
gds-framework gds 80% (existing)
gds-viz gds_viz 80% (new)
gds-games ogs 80% (new)
gds-stockflow stockflow 80% (new)
gds-control gds_control 80% (new)

Test plan

  • CI tests pass for all packages
  • Coverage reports appear in test output
  • All packages meet the 80% threshold

Copilot AI review requested due to automatic review settings February 27, 2026 08:56
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR establishes consistent test coverage enforcement across all library packages in the gds-core monorepo by adding pytest-cov configuration with an 80% coverage threshold to match the existing standard in gds-framework.

Changes:

  • Added pytest-cov>=6.0 as a dev dependency to four library packages
  • Configured 80% coverage threshold with consistent settings across all packages
  • Coverage enforcement is integrated into pytest via addopts (no CI workflow changes required)

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
packages/gds-viz/pyproject.toml Adds pytest-cov dependency and configures 80% coverage for gds_viz package
packages/gds-stockflow/pyproject.toml Adds pytest-cov dependency and configures 80% coverage for stockflow package
packages/gds-games/pyproject.toml Adds pytest-cov dependency and configures 80% coverage for ogs package
packages/gds-control/pyproject.toml Adds pytest-cov dependency and configures 80% coverage for gds_control package

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rororowyourboat
Copy link
Collaborator Author

Superseded by #42 (combined merge branch)

rororowyourboat added a commit that referenced this pull request Feb 27, 2026
@rororowyourboat rororowyourboat deleted the ci/test-coverage branch February 27, 2026 09:15
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