Skip to content

Commit 3cfa035

Browse files
author
zhansheng.lzs
committed
ci: pin Python 3.9 leg to ubuntu-24.04
ubuntu-latest now resolves to Ubuntu 26.04, which has no CPython 3.9 build in actions/python-versions, so setup-python failed with "version '3.9' ... not found for Ubuntu 26.04". The package still declares python_requires=">=3.9", so keep the 3.9 leg but run it on ubuntu-24.04 (the newest image that ships 3.9); 3.10-3.13 stay on ubuntu-latest.
1 parent 53a95de commit 3cfa035

1 file changed

Lines changed: 26 additions & 4 deletions

File tree

‎.github/workflows/unit_test.yml‎

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,19 @@ jobs:
1515
runs-on: ${{ matrix.os }}
1616
strategy:
1717
matrix:
18-
os: [ ubuntu-latest ]
19-
python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13' ]
18+
# ubuntu-latest (26.04) ships no CPython 3.9 build, so pin the
19+
# still-supported 3.9 leg to 24.04 and keep the rest on latest.
20+
include:
21+
- os: ubuntu-24.04
22+
python-version: '3.9'
23+
- os: ubuntu-latest
24+
python-version: '3.10'
25+
- os: ubuntu-latest
26+
python-version: '3.11'
27+
- os: ubuntu-latest
28+
python-version: '3.12'
29+
- os: ubuntu-latest
30+
python-version: '3.13'
2031

2132
steps:
2233
- name: Checkout repository
@@ -68,8 +79,19 @@ jobs:
6879
runs-on: ${{ matrix.os }}
6980
strategy:
7081
matrix:
71-
os: [ ubuntu-latest ]
72-
python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13' ]
82+
# ubuntu-latest (26.04) ships no CPython 3.9 build, so pin the
83+
# still-supported 3.9 leg to 24.04 and keep the rest on latest.
84+
include:
85+
- os: ubuntu-24.04
86+
python-version: '3.9'
87+
- os: ubuntu-latest
88+
python-version: '3.10'
89+
- os: ubuntu-latest
90+
python-version: '3.11'
91+
- os: ubuntu-latest
92+
python-version: '3.12'
93+
- os: ubuntu-latest
94+
python-version: '3.13'
7395

7496
steps:
7597
- name: Checkout repository

0 commit comments

Comments
 (0)