You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add branch coverage config + CI gate + artifact #64
pytest.ini already runs --cov=pyAMICA (term/html/xml) but nothing consumes it. Make coverage actionable, especially branch coverage given the many conditionals in the NG backend.
Tasks
Add [tool.coverage.run] (source=pyAMICA, branch = true, omit tests/ + __main__/CLI entrypoints) and [tool.coverage.report] (show_missing, exclude_lines for pragmas / if __name__ / TYPE_CHECKING, precision).
Enable branch coverage (currently line-only).
Exclude the test files themselves from the coverage denominator.
CI: upload the HTML report as an artifact and enforce a --cov-fail-under threshold (ratchet from the measured baseline; report-only first commit, then gate).
Confirm the torch tests are actually counted in CI coverage (they run on the Linux runner; only the Fortran-binary slow tests are excluded).
Folded in with the test-hardening work (#61, #15).
Activity
test: branch coverage + parallel CI (#64)
test: harden edge cases + utils coverage (#61, #15)
test: hardening + branch coverage in CI (#65)