Commit 51ed1f3
fix(ci): pair setup-python with setup-uv to get latest Python patch
CI failure on PR #230 commit 1558779: build (3.12) failed because the
runner used Python 3.12.3 (pre-installed on ubuntu-latest), not 3.12.11+.
Two tests assert RFC 5952 IPv4-mapped IPv6 string format
(`::ffff:192.0.2.1`), which Python only adopted in 3.12.4 (bpo-119891).
Root cause: setup-uv's `python-version: "3.12"` doesn't install the
LATEST 3.12 patch — it picks up whatever Python is already on PATH (the
runner's older pre-installed version).
Fix: install Python via `actions/setup-python` first (always picks the
latest patch for the requested minor), then run setup-uv WITHOUT the
`python-version` input. Pass `--python ${{ matrix.python-version }}` to
`uv sync` to pin uv to the version setup-python provided.
Same fix applied to py-to-exe.yml for consistency.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 1558779 commit 51ed1f3
2 files changed
Lines changed: 22 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
23 | 29 | | |
24 | 30 | | |
25 | 31 | | |
26 | | - | |
27 | 32 | | |
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
33 | | - | |
| 38 | + | |
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
23 | 33 | | |
24 | 34 | | |
25 | 35 | | |
26 | | - | |
27 | 36 | | |
28 | 37 | | |
29 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
30 | 41 | | |
31 | 42 | | |
32 | 43 | | |
| |||
0 commit comments