Skip to content

Commit 44a87e2

Browse files
committed
fix: improve CI workflow with proper Qt and GUI testing setup
1 parent b5cf331 commit 44a87e2

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
python-version: ["3.8", "3.9", "3.10", "3.11"]
17+
fail-fast: false # Continue with other versions even if one fails
1718

1819
steps:
1920
- uses: actions/checkout@v3
@@ -26,23 +27,34 @@ jobs:
2627
- name: Install system dependencies
2728
run: |
2829
sudo apt-get update
29-
sudo apt-get install -y qtbase5-dev
30+
sudo apt-get install -y \
31+
qtbase5-dev \
32+
qttools5-dev-tools \
33+
libxkbcommon-x11-0 \
34+
libxcb-icccm4 \
35+
libxcb-image0 \
36+
libxcb-keysyms1 \
37+
libxcb-randr0 \
38+
libxcb-render-util0 \
39+
libxcb-xinerama0 \
40+
xvfb
3041
31-
- name: Install dependencies
42+
- name: Install Python dependencies
3243
run: |
3344
python -m pip install --upgrade pip
45+
pip install -e .
3446
pip install -r requirements.txt
3547
pip install -r requirements-dev.txt
3648
3749
- name: Run linting
3850
run: |
39-
black . --check
40-
flake8 .
51+
black . --check --diff
52+
flake8 . --count --show-source --statistics
4153
continue-on-error: true # Make linting optional for now
4254

43-
- name: Run tests
55+
- name: Run tests with xvfb
4456
run: |
45-
pytest
57+
xvfb-run --auto-servernum pytest -v --tb=short
4658
continue-on-error: true # Make tests optional for now
4759

4860
publish:

0 commit comments

Comments
 (0)