Skip to content

Commit b968cc2

Browse files
committed
Run CI on ubuntu-24.04 so Python 3.9 and the pinned 3.10.4 resolve
The first run of the new pull_request matrix failed for Python 3.9 before any test ran: ubuntu-latest now resolves to the Ubuntu 26.04 image, and the actions/python-versions manifest has no 3.9 build for it ("The version '3.9' with architecture 'x64' was not found for Ubuntu 26.04"). 3.9 builds exist for 22.04 and 24.04 only. Python 3.10 to 3.13 passed on 26.04. Pin the test matrix to ubuntu-24.04, where all five versions have builds. The build-n-publish job pins Python 3.10.4, which also has no 26.04 build (only 20.04, 22.04 and 24.04), so it would fail at setup on the next push to master or tag; pin its runner to ubuntu-24.04 too, leaving its steps and the tag gate untouched. Claude-Session: https://claude.ai/code/session_01VQiRp4zEJKUXHrKkFaeUke Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 parent 0932516 commit b968cc2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/python-publish.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ on:
1111
jobs:
1212
test:
1313
name: Test (Python ${{ matrix.python-version }})
14-
runs-on: ubuntu-latest
14+
# ubuntu-latest now resolves to Ubuntu 26.04, for which actions/setup-python has no Python 3.9 builds
15+
runs-on: ubuntu-24.04
1516
strategy:
1617
fail-fast: false
1718
matrix:
@@ -33,7 +34,8 @@ jobs:
3334
build-n-publish:
3435
name: Build and publish to PyPI
3536
if: github.event_name == 'push'
36-
runs-on: ubuntu-latest
37+
# the pinned Python 3.10.4 below has no build for Ubuntu 26.04 either
38+
runs-on: ubuntu-24.04
3739
steps:
3840
- uses: actions/checkout@v4
3941
- name: Set up Python 3.10.4

0 commit comments

Comments
 (0)