Commit 9cfc3b3
fix(ci): override pyproject addopts so auditor tests don't need pytest-cov
The citation-audit workflow only installs ``pytest`` (no coverage
toolchain) because the auditor tests are stdlib-only. But pytest
auto-applies the project's ``pyproject.toml`` addopts, which include
``--cov=statspai`` — so the CI run died with
``ERROR: usage: ... unrecognized arguments --cov=statspai`` and
never reached the live auditor steps.
Override addopts with ``-o 'addopts='`` to run the tests in isolation.
Local ``pytest`` (with the full [dev] extras) keeps its coverage
reporting unchanged.
Verification: ran the exact CI invocation locally,
python -m pytest tests/test_audit_citations.py \
tests/test_audit_bib_duplicates.py -o 'addopts=' -q
-> 49 passed in 0.99s
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 742ec43 commit 9cfc3b3
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
76 | 84 | | |
77 | 85 | | |
78 | 86 | | |
| |||
0 commit comments