Skip to content

Commit 9fc7f75

Browse files
authored
Enhance Python workflow for PyQt6 support
1 parent e45a834 commit 9fc7f75

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/python-package.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3-
41
name: Python package
52

63
on:
@@ -20,21 +17,30 @@ jobs:
2017

2118
steps:
2219
- uses: actions/checkout@v4
20+
2321
- name: Set up Python ${{ matrix.python-version }}
2422
uses: actions/setup-python@v3
2523
with:
2624
python-version: ${{ matrix.python-version }}
27-
- name: Install dependencies
25+
26+
- name: Install system dependencies for PyQt6
27+
run: |
28+
sudo apt-get update
29+
sudo apt-get install -y libegl1-mesa libxkbcommon-x11-0
30+
31+
- name: Install Python dependencies
2832
run: |
2933
python -m pip install --upgrade pip
30-
python -m pip install flake8 pytest
34+
python -m pip install flake8 pytest pytest-qt
3135
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
36+
3237
- name: Lint with flake8
3338
run: |
3439
# stop the build if there are Python syntax errors or undefined names
3540
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude fossil-main,ex/benchmarks-deterministic/FOSSIL-versions
36-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
41+
# exit-zero treats all errors as warnings
3742
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude fossil-main,ex/benchmarks-deterministic/FOSSIL-versions
43+
3844
- name: Test with pytest
3945
run: |
4046
pytest --ignore=fossil-main --ignore=ex/benchmarks-deterministic/FOSSIL-versions

0 commit comments

Comments
 (0)