testsAndMisc/.github/workflows
Krzysztof kuhy Rudnicki 6eb70de0ba Key the pre-commit cache on the Python that was actually installed
The key said `py3.12` as a literal while the job installs `3.x`, which is
3.14.7 today. A `language: python` hook env is built by whichever Python
pre-commit ran under, so the cache kept handing back envs built on 3.12.14 and
the hooks kept running there -- invisibly, right up to the first syntax 3.12
cannot parse.

PEP 758 was that syntax. The previous commit's `except A, B:` reached pylint
and the debug-statement hook on cached 3.12 interpreters and came back as
"multiple exception types must be parenthesized", a failure with no local
reproduction: developer caches were built on 3.14, where the same pylint 3.3.2
and the same pylint 4.0.7 both parse the file fine. The syntax was never the
defect; the stale interpreter was.

`steps.setup-python.outputs.python-version` cannot drift from what was
installed, so this cannot recur on the next release either.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SfnJmxxsZ534AKk16rC2Gr
2026-08-29 12:01:52 +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
dependency-freshness.yml Latest stable dependencies, gatelock v0.7.2, and the gate 2026-08-28 17:40:00 +02:00
md-naming.yml Adopt the four markdown namespaces and gate them 2026-08-24 15:55:46 +02:00
pre-commit.yml Key the pre-commit cache on the Python that was actually installed 2026-08-29 12:01:52 +02:00
python-tests.yml Run CI on newest stable Python, which the pins now require 2026-08-28 18:45:50 +02:00
shell-tests.yml Extract digital-wellbeing; the directory-depth cap now enforces 2026-08-23 20:57:51 +02:00