Skip to content

Commit 7bb3666

Browse files
authored
Enhance Python package workflow with PyQt6 dependencies
1 parent 857d4d6 commit 7bb3666

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/python-package.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88

99
jobs:
1010
build:
11-
1211
runs-on: ubuntu-latest
1312
strategy:
1413
fail-fast: false
@@ -23,10 +22,11 @@ jobs:
2322
with:
2423
python-version: ${{ matrix.python-version }}
2524

25+
# Install PyQt6 system dependencies (EGL, XKB, etc.)
2626
- name: Install system dependencies for PyQt6
2727
run: |
2828
sudo apt-get update
29-
sudo apt-get install -y libegl-mesa0 libxkbcommon-x11-0 mesa-utils
29+
sudo apt-get install -y libxkbcommon-x11-0 libegl-mesa0 mesa-utils
3030
3131
- name: Install Python dependencies
3232
run: |
@@ -36,11 +36,12 @@ jobs:
3636
3737
- name: Lint with flake8
3838
run: |
39-
# stop the build if there are Python syntax errors or undefined names
4039
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude fossil-main,ex/benchmarks-deterministic/FOSSIL-versions
41-
# exit-zero treats all errors as warnings
4240
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude fossil-main,ex/benchmarks-deterministic/FOSSIL-versions
4341
44-
- name: Test with pytest
42+
- name: Run tests with pytest
43+
env:
44+
QT_QPA_PLATFORM: offscreen
45+
AUTO_CLOSE_GUI: "1"
4546
run: |
4647
pytest --ignore=fossil-main --ignore=ex/benchmarks-deterministic/FOSSIL-versions

0 commit comments

Comments
 (0)