Repository navigation
Commit 124de73
ci: run the unit tests, which nothing was running (#257)
main_test.py has 99 tests and CI never executed a single one. The repo's
workflows are commit-check (self test), pre-commit (black, mypy,
codespell, yaml/toml), release and used-by — none of them invoke pytest.
Every release so far shipped with the suite unrun outside contributors'
machines.
Matrix is the floor and the newest across the three OSes the action
supports. 3.10 is the real floor: main.py annotates with `str | None`
without `from __future__ import annotations`, so the annotation is
evaluated at def time, and main_test.py uses parenthesized context
managers — both 3.10+.
Installs requirements.txt rather than the bare deps, so the commit-check
version under test is the one the action ships, which is also the version
the golden tests read back out of importlib.metadata.
Verified from a clean venv: the exact install and pytest invocation this
workflow runs gives 99 passed, 2 subtests passed.
Claude-Session: https://claude.ai/code/session_01U9zFxq8V4qxG4aMzJhGBFn
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>1 parent 3773edb commit 124de73
1 file changed
Lines changed: 43 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
0 commit comments