Skip to content

Conversation

@27Bslash6
Copy link
Contributor

Summary

Fixes low coverage (~52%) by running full test suite on merge to main.

Event Tests Run Coverage CI Time
PR tests/critical/ ~52% ~1-2 min
Main push tests/ (all) ~77% ~10 min

Changes

  • ci.yml: Conditional test execution based on github.event_name
    • pull_request → critical tests only (fast feedback)
    • push → full test suite (accurate coverage)
  • codecov.yml: New configuration file
    • Carryforward flags to preserve coverage between uploads
    • 2% threshold for project coverage
    • 80% target for patch (new code) coverage

Codecov Flag Strategy

PRs:   flags: critical-python-X.Y  (fast, partial coverage)
Main:  flags: full-python-X.Y      (slow, full coverage)

Codecov carryforward ensures badge shows full coverage from main, not partial from PRs.

Test Plan

  • PR CI runs critical tests only (~1-2 min)
  • Main merge CI runs full tests (~10 min)
  • Codecov shows ~77% coverage after main merge

- PRs: Run tests/critical/ only (fast CI feedback, ~1-2 min)
- Main push: Run tests/ full suite (accurate coverage, ~10 min)
- Add codecov.yml with carryforward flags configuration
- Use dynamic flags: full-python-X.Y vs critical-python-X.Y

Coverage improves from ~52% (critical) to ~77% (full) on main.
@27Bslash6 27Bslash6 merged commit f3040e4 into main Dec 16, 2025
31 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.

2 participants