Repository navigation
ci(python): test 3.11, 3.13 and 3.14 on ubuntu-latest - #3013
Conversation
`ubuntu-latest` now resolves to Ubuntu 26.04, and actions/setup-python publishes no CPython 3.9 build for that image, so `test (Python 3.9)` fails in the setup step on every pull request that touches `python/`. Give the test matrix an `os` per version and keep the 3.9 leg on ubuntu-24.04, where the build exists. The 3.11 and 3.13 legs and the lint job stay on ubuntu-latest, and the job names are unchanged.
Replace the ubuntu-24.04 pin for the 3.9 leg with a matrix that follows the default python3 of ubuntu-latest. Ubuntu 26.04 ships Python 3.14 and actions/setup-python has no 3.9 build for it, so the matrix is now 3.11, 3.13 and 3.14, all on ubuntu-latest. requires-python stays >=3.9, which CI no longer exercises. Refs lablup#3012
|
Thank you for the careful diagnosis and the thorough test plan, @Jaeyeong-CHOI. The manifest check and the run links made the cause easy to confirm. After discussing it, the maintainer decided not to pin a leg to One consequence: |
CI stopped testing 3.9 and 3.10 when #3013 moved the matrix to 3.11, 3.13 and 3.14 on ubuntu-latest, so the declared `requires-python = ">=3.9"` floor was untested. The floor now matches the oldest tested interpreter: `requires-python`, ruff `target-version` and mypy `python_version` move to 3.11, the classifiers list 3.11, 3.13 and 3.14, and the README, client docs and CHANGELOG say 3.11. Ruff's py311 target flagged one `asyncio.TimeoutError` alias in a test, replaced with the builtin `TimeoutError` (the same class on 3.11). The UP006/UP007/UP035/UP045 ignores stay, so existing annotations are not rewritten. Ruff lint and format, mypy on `python/src`, and the unit tests pass on 3.11 and 3.14 (140 passed). Refs #3012, #3013
Summary
test (Python 3.9)fails inactions/setup-pythonon every PR that touchespython/, becauseubuntu-latestis now Ubuntu 26.04 and there is no CPython 3.9 build for that image. Instead of pinning the 3.9 job to an older image, the test matrix now follows the Python that Ubuntu 26.04 ships:3.9is replaced by3.14, and the matrix runs3.11,3.13and3.14onubuntu-latest.Closes #3012.
Why not pin to ubuntu-24.04
The maintainer prefers to keep every job on
ubuntu-latestrather than hold one leg on an image that GitHub will retire. Ubuntu 26.04 ships Python 3.14 as its defaultpython3(python3-defaults3.14.3 in resolute, and the runner image lists Python 3.14.4 under Language and Runtime), so CI now tests the interpreter users of the current LTS get by default.Change
.github/workflows/python.yml:python-version: ['3.11', '3.13', '3.14']onubuntu-latest. All three have Ubuntu 26.04 x64 builds in theactions/python-versionsmanifest (3.11.18, 3.13.18, 3.14.10). Thelint, type-checkjob is unchanged.Declared floor no longer tested
python/pyproject.tomlstill declaresrequires-python = ">=3.9"and is not changed here. After this PR CI no longer runs 3.9 (or 3.10), so the declared floor is untested. Options for a follow-up: raiserequires-pythonto>=3.11(3.9 reached end of life in October 2025), or add a3.10leg, which still has a 26.04 build, if 3.10 should stay covered.Test plan
actions/python-versionsmanifest checked for linux/x64 builds withplatform_version26.04: 3.10 through 3.15 present, 3.9 absenttest (Python 3.11),test (Python 3.13),test (Python 3.14)andlint, type-checkpass in this PR's CI run