Skip to content

Commit 5a75583

Browse files
committed
CI: use ubuntu-latest and enable more jobs
Currently `pyqt6` started to fail during import with this error on `ubuntu-20.04`: ``` INTERNALERROR> ImportError: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.35' not found (required by /home/runner/work/pytest-qt/pytest-qt/.tox/py37-pyqt6/lib/python3.7/site-packages/PyQt6/QtGui.abi3.so) py37-pyqt6: exit 3 (0.27 seconds) /home/runner/work/pytest-qt/pytest-qt> pytest -ra --color=yes pid=2880 ``` Using `ubuntu-latest`, and also re-enabling most jobs except one.
1 parent c1289fe commit 5a75583

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: build
22

33
on: [push, pull_request]
44

5+
# Cancel running jobs for the same workflow and branch.
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
510
jobs:
611
build:
712

@@ -12,7 +17,7 @@ jobs:
1217
matrix:
1318
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
1419
qt-lib: [pyqt5, pyqt6, pyside2, pyside6]
15-
os: [ubuntu-20.04, windows-latest, macos-latest]
20+
os: [ubuntu-latest, windows-latest, macos-latest]
1621
include:
1722
- python-version: "3.7"
1823
tox-env: "py37"
@@ -24,20 +29,12 @@ jobs:
2429
tox-env: "py310"
2530
- python-version: "3.11"
2631
tox-env: "py311"
27-
# https://bugreports.qt.io/browse/PYSIDE-1797
2832
exclude:
29-
- qt-lib: pyside6
30-
os: macos-latest
31-
python-version: "3.7"
32-
- qt-lib: pyside6
33-
os: ubuntu-20.04
34-
python-version: "3.7"
35-
# Not installable so far
36-
- qt-lib: pyside6
37-
python-version: "3.11"
38-
- qt-lib: pyside2
33+
# Not installable:
34+
# ERROR: Could not find a version that satisfies the requirement pyside2 (from versions: none)
35+
- python-version: "3.11"
36+
qt-lib: pyside2
3937
os: windows-latest
40-
python-version: "3.11"
4138

4239
steps:
4340
- uses: actions/checkout@v3
@@ -50,7 +47,7 @@ jobs:
5047
run: |
5148
python -m pip install --upgrade pip
5249
pip install tox
53-
if [ "${{ matrix.os }}" == "ubuntu-20.04" ]; then
50+
if [ "${{ matrix.os }}" == "ubuntu-latest" ]; then
5451
sudo apt-get update -y
5552
sudo apt-get install -y libgles2-mesa-dev
5653
fi

0 commit comments

Comments
 (0)