Skip to content

Commit dbe7b2e

Browse files
committed
Try to get unit tests working again on github
1 parent b82ca34 commit dbe7b2e

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/unit-tests.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,25 @@ jobs:
2222
python-version: 3.12
2323
- name: Install dependencies
2424
run: |
25-
sudo apt-get update
26-
sudo apt-get install -y libegl1 libgl1-mesa-glx xvfb
2725
python -m pip install --upgrade pip
2826
pip install ruff pytest tqdm pytest-cov
2927
pip install -r requirements.txt
28+
3029
- name: Lint with ruff
3130
run: |
3231
# stop the build if there are Python syntax errors or undefined names
3332
ruff check
33+
34+
- name: Spin up Xvfb
35+
run: |
36+
sudo apt-get update
37+
sudo apt-get install libosmesa6 libglx-mesa0 libopengl0 libglx0 libdbus-1-3
38+
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1400x900x24 -ac +extension GLX +render -noreset;
39+
40+
- name: Install PyQt6 dependencies
41+
run: |
42+
sudo apt-get install qt6-base-dev libx11-xcb-dev libxcb-cursor0
43+
3444
- name: Test with pytest
3545
run: |
3646
pip install -e .

0 commit comments

Comments
 (0)