发布

  • feat: add code coverage reporting to CI (#1239)

    frostbyte_neo 发布于 2025-12-16 00:58:46 +00:00

    • feat: add code coverage reporting to CI
    • Add coverage-report job to tests.yml workflow
    • Configure coverage in pyproject.toml with sensible exclusions:
      • strategies/* (experimental, pending cleanup)
      • cli.py and cli/* (hard to unit test)
      • visualization.py (visualization code)
      • answer_decoding/* (experimental browsecomp)
    • Upload HTML coverage report as artifact
    • Current baseline: ~40% coverage (excluding experimental code)
    • refactor: add Docker caching and fix coverage paths
    • Use docker/build-push-action with GHA cache (saves ~30-90s)
    • Consistent coverage/ directory for all outputs
    • Extract TEST_IMAGE env variable for maintainability

    Addresses AI reviewer feedback on PR #1239

    • fix: continue coverage report even if tests fail

    • feat: add coverage summary to GitHub Actions job summary

    • feat: add coverage badge support via gist

    • docs: add comment explaining gist-based badge approach

    • docs: add coverage badge to README

    Add dynamic coverage badge that updates via GitHub gist on CI runs.
    Links to the tests workflow for easy access to coverage reports.

    • chore: auto-bump version to 1.3.15

    Co-authored-by: GitHub Action action@github.com

    下载附件