Skip to content

Commit 3cda216

Browse files
committed
try pytest-xvfb instead of xvfb-run
1 parent 6b906c9 commit 3cda216

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,6 @@ jobs:
5353
with:
5454
python-version: ${{ matrix.python-version }}
5555

56-
- name: setup xvfb
57-
if: ${{ startsWith(matrix.os, 'ubuntu') }}
58-
run: |
59-
echo "PRE_TEST=xvfb-run --auto-servernum" >> "$GITHUB_ENV"
60-
6156
- name: set qt env
6257
run: |
6358
echo "QT=${{ matrix.qt }}" >> $GITHUB_ENV
@@ -72,19 +67,19 @@ jobs:
7267
timeout-minutes: 15
7368
if: ${{ !startsWith( matrix.python-version, 'pypy' ) && !startsWith(matrix.os, 'windows') }}
7469
run: |
75-
${PRE_TEST-} hatch run cov:test --cov-fail-under 50
70+
hatch run cov:test --cov-fail-under 50
7671
7772
- name: Run the tests on pypy
7873
timeout-minutes: 15
7974
if: ${{ startsWith( matrix.python-version, 'pypy' ) }}
8075
run: |
81-
${PRE_TEST-} hatch run test:nowarn --ignore=tests/test_debugger.py
76+
hatch run test:nowarn --ignore=tests/test_debugger.py
8277
8378
- name: Run the tests on Windows
8479
timeout-minutes: 15
8580
if: ${{ !startsWith( matrix.python-version, 'pypy' ) && startsWith(matrix.os, 'windows') }}
8681
run: |
87-
${PRE_TEST-} hatch run cov:nowarn
82+
hatch run cov:nowarn
8883
8984
- name: Check Launcher
9085
run: |

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ docs = [
5757
test = [
5858
"pytest>=7.0,<9",
5959
"pytest-cov",
60+
'pytest-xvfb; platform_system == "Linux"',
6061
"flaky",
6162
"ipyparallel",
6263
"pre-commit",

0 commit comments

Comments
 (0)