mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-10 21:07:03 +01:00
python-tests.yml runs pytest and nothing else, but installed the full requirements.txt -- 79 packages, of which ~62 are linters, formatters and type checkers that job never invokes. Installing them was the workflow's slowest step: 49s, against 35s actually running the tests. meta/requirements-test.txt holds the 17 that matter. Derived by static import analysis over python_pkg/ and linux_configuration/tests/, then VERIFIED rather than assumed -- a clean Python 3.11 venv with only this list runs the whole suite: 2174 passed, TOTAL 100.00%, 7138 stmts / 1748 branches, 0 missing identical to the full-requirements run. Install of the subset: 6.2s. The pytest-* entries are in the list even though nothing imports them: randomly reorders tests, timeout enforces a limit, sugar changes reporting and xdist provides -n. Dropping one changes how the suite runs. Drift is gated, not left to discipline: a new requirements-test-sync hook reuses check_requirements_sync.py's existing --requirements flag, so a new third-party import fails at commit time rather than as a bare ModuleNotFoundError in CI. The new file is also in both path filters. pre-commit.yml keeps the full list -- it needs every formatter. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJrqKERAo5QUeEHWS5Asgp |
||
|---|---|---|
| .. | ||
| contracts | ||
| evidence | ||
| memory | ||
| plans | ||
| sessions | ||
| specs | ||
| workflows | ||