Skip to content

Commit f3894de

Browse files
Run Python 3.9 CI jobs on ubuntu-24.04
ubuntu-latest now points to Ubuntu 26.04, for which actions/setup-python provides no Python 3.9 build, so every 3.9 Linux job failed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent ec1d1be commit f3894de

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,25 @@ jobs:
3333
qt-lib: [pyqt5, pyqt6, pyside6]
3434
os: [ubuntu-latest, windows-latest, macos-latest]
3535
include:
36+
# Python 3.9 is not available on ubuntu-latest (Ubuntu 26.04).
37+
- python-version: "3.9"
38+
qt-lib: pyqt5
39+
os: ubuntu-24.04
40+
- python-version: "3.9"
41+
qt-lib: pyqt6
42+
os: ubuntu-24.04
43+
- python-version: "3.9"
44+
qt-lib: pyside6
45+
os: ubuntu-24.04
3646
- python-version: "3.9"
3747
qt-lib: pyqt61
38-
os: ubuntu-latest
48+
os: ubuntu-24.04
3949
- python-version: "3.9"
4050
qt-lib: pyside60
41-
os: ubuntu-latest
51+
os: ubuntu-24.04
4252
exclude:
53+
- python-version: "3.9"
54+
os: ubuntu-latest
4355
# No PySide6 release supports Python 3.15 yet (all declare
4456
# Requires-Python <3.15), so it cannot be installed.
4557
- python-version: "3.15"
@@ -64,7 +76,7 @@ jobs:
6476
run: |
6577
python -m pip install --upgrade pip
6678
pip install tox
67-
if [ "${{ matrix.os }}" == "ubuntu-latest" ]; then
79+
if [ "${{ runner.os }}" == "Linux" ]; then
6880
sudo apt-get update -y
6981
sudo apt-get install -y libgles2-mesa-dev
7082
fi

0 commit comments

Comments
 (0)