Skip to content

Commit ea1e337

Browse files
committed
Try to reduce xvfb-run failures in tests.
The internal handling of auto-servernum might have a race condition. Start with a random number to reduce collisions with the server number.
1 parent d126372 commit ea1e337

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ jobs:
132132
if: runner.os == 'Windows'
133133
run: |
134134
pytest --cov-report=xml
135-
- name: Test with pytest
135+
- name: Test with pytest (Xvfb)
136136
if: runner.os != 'Windows'
137137
run: |
138-
xvfb-run --auto-servernum pytest --cov-report=xml
138+
xvfb-run --server-num=$RANDOM --auto-servernum pytest --cov-report=xml
139139
- uses: codecov/codecov-action@v1
140140
- name: Upload to PyPI
141141
if: startsWith(github.ref, 'refs/tags/') && runner.os != 'Linux'

0 commit comments

Comments
 (0)