Repository navigation
Commit 348ff73
ci: run Python 3.8 and 3.9 jobs on
GitHub is rolling out Ubuntu 26.04 as `ubuntu-latest` gradually
across repositories, from 2026-10-19 through 2026-11-19 (see
actions/runner-images#14748). This
repository now receives it: on 2026-10-25, jobs started at 10:06 UTC
got the `ubuntu-24.04` image, and jobs started at 13:33 UTC got
`ubuntu-26.04`.
`actions/setup-python` takes its interpreters from the
`actions/python-versions` manifest, which has Linux x64 builds of
Python 3.8 and 3.9 for Ubuntu 24.04 but none for 26.04. The lowest
version it has for 26.04 is 3.10. So on 26.04, `setup-python` fails
with "The version '3.8' with architecture 'x64' was not found for
Ubuntu 26.04" (and likewise for 3.9). This broke six jobs:
- `test (smmap, 3.8)`, `test (smmap, 3.9)`, `test (gitdb, 3.8)`, and
`test (gitdb, 3.9)` in `dependencies.yml`, which test the vendored
`smmap` and `gitdb` packages (both declare `python_requires=">=3.7"`).
- `install/import (ubuntu-latest, 3.8)` and
`install/import (ubuntu-latest, 3.9)` in `pythonpackage.yml`, which
check that GitPython (`requires-python = ">=3.8"`) still installs
and imports on those versions.
Run just those Ubuntu jobs on `ubuntu-24.04`. Everything else,
including the 3.10 jobs in the same matrices, stays on `ubuntu-latest`.
In `dependencies.yml`, `include` adds an `os` key only to the 3.8 and
3.9 combinations, and `runs-on` falls back to `ubuntu-latest` where it
is unset. In `pythonpackage.yml`, the `ubuntu-latest` 3.8 and 3.9
combinations are swapped for `ubuntu-24.04` ones, so the job names
show the image they actually run on. No status checks are required on
`main`, so the renamed jobs do not affect merging.
Python 3.8 and 3.9 can be installed on 26.04 in other ways: the
deadsnakes PPA publishes 3.8.20 and 3.9.25 for 26.04, and uv can
install python-build-standalone builds. But these would add a
different installation mechanism (and, for deadsnakes, a third-party
apt source) for just these jobs, while pinning keeps the same
`setup-python` builds that were tested before. This needs revisiting
when GitHub retires the `ubuntu-24.04` image, if 3.8 and 3.9 are still
tested then.
`actionlint` reports no problems with either workflow.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>ubuntu-24.04
1 parent f1fb0bd commit 348ff73
2 files changed
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
20 | 26 | | |
21 | 27 | | |
22 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
254 | 265 | | |
255 | 266 | | |
256 | 267 | | |
| |||
0 commit comments