Skip to content

Commit af6053e

Browse files
committed
use pytest fix
1 parent 066e1fa commit af6053e

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/tests.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@ jobs:
2020
poetry --no-root install
2121
- name: Setup xvfb (Linux)
2222
if: runner.os == 'Linux'
23+
# Fix from: https://pytest-qt.readthedocs.io/en/latest/troubleshooting.html#github-actions-azure-pipelines-travis-ci-and-gitlab-ci-cd
2324
run: |
24-
# Stuff copied wildly from several stackoverflow posts
25-
sudo apt-get install -y xvfb libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xinput0 libxcb-xfixes0 libxcb-shape0 libglib2.0-0 libgl1-mesa-dev
26-
sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
27-
# start xvfb in the background
28-
sudo /usr/bin/Xvfb $DISPLAY -screen 0 1280x1024x24 &
25+
sudo apt install libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 x11-utils
26+
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX
2927
- name: Run tests
3028
run: |
3129
cd basic_games

0 commit comments

Comments
 (0)