Skip to content

Commit 066e1fa

Browse files
committed
test setup xvfb deps
1 parent cf88697 commit 066e1fa

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/tests.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,15 @@ jobs:
1818
run: |
1919
cd basic_games
2020
poetry --no-root install
21+
- name: Setup xvfb (Linux)
22+
if: runner.os == 'Linux'
23+
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 &
2129
- name: Run tests
22-
uses: GabrielBB/xvfb-action@v1
23-
with:
24-
run: poetry run poe test
25-
working-directory: basic_games
30+
run: |
31+
cd basic_games
32+
poetry run poe test

0 commit comments

Comments
 (0)