Skip to content

Commit 32d8404

Browse files
chrisdpurcellclaude
andcommitted
fix: install libGL/libEGL runtime deps, set offscreen platform for tests
PySide6 imports fail with 'libGL.so.1: cannot open shared object file' on the headless self-hosted runner. Install the libraries and set QT_QPA_PLATFORM=offscreen to avoid needing a display for unit tests. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e75bbc9 commit 32d8404

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,14 @@ jobs:
2727
- name: Install dependencies
2828
run: uv pip install --system -r requirements.txt
2929

30+
- name: Install Qt runtime dependencies
31+
run: |
32+
sudo apt-get update -q
33+
sudo apt-get install -y libgl1 libegl1 libxkbcommon-x11-0
34+
3035
- name: Run tests
36+
env:
37+
QT_QPA_PLATFORM: offscreen
3138
run: pytest tests/ -v --cov=src --cov-report=xml --cov-fail-under=80
3239

3340
- name: Upload coverage to Codecov

0 commit comments

Comments
 (0)