testsAndMisc/.github/workflows
Krzysztof kuhy Rudnicki e4b8ad0cfe Install only the test deps in Python tests CI: 79 packages -> 17
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
2026-08-23 16:29:24 +02:00
..
billsplit-ci.yml Move billsplit Flutter app into the monorepo 2026-08-03 12:22:22 +02:00
claude-code-review.yml Fix prettier formatting in claude-code-review.yml 2026-06-22 07:54:32 +02:00
claude.yml Fix CI pipeline and clear the lint backlog it had been hiding 2026-06-22 07:52:44 +02:00
poker-stakes-ci.yml Track poker-stakes so the file-length cap can reach it 2026-08-16 15:19:07 +02:00
pre-commit.yml Cache pip and pre-commit envs in CI 2026-08-23 16:24:17 +02:00
python-tests.yml Install only the test deps in Python tests CI: 79 packages -> 17 2026-08-23 16:29:24 +02:00
reverse-survivors-ci.yml feat(reverse_survivors): migrate Reverse Survivors game into the monorepo 2026-08-03 10:45:12 +02:00
shell-tests.yml CI: skip the kcov-jail suites instead of failing to install kcov 2026-08-22 12:31:36 +02:00