Skip to content

Commit b736126

Browse files
committed
different approach to activate xvfb
1 parent 726f3dc commit b736126

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/python-ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
matrix:
1010
os: [ubuntu-latest]
1111
python-version: [3.9]
12+
env:
13+
DISPLAY: ":99.0"
1214

1315
steps:
1416
- uses: actions/checkout@v2
@@ -22,7 +24,8 @@ jobs:
2224
python -c "import struct; print(struct.calcsize('P') * 8)"
2325
- name: Install testing dependencies
2426
run: |
27+
python -m pip install --upgrade pip setuptools wheel tox tox-gh-actions pytest pytest-qt
2528
sudo apt install libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0
26-
python -m pip install --upgrade pip setuptools wheel tox tox-gh-actions pytest pytest-qt pytest-xvfb
29+
/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
2730
- name: Run tox tests
2831
run: python -m tox

0 commit comments

Comments
 (0)