Skip to content

Commit

Permalink
fix: update pytest workflow to use Xvfb for headless testing
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerFlar committed Jan 13, 2025
1 parent 8c29964 commit ea968e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/pytest_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,10 @@ jobs:
poetry install --with dev
- name: Run tests
env:
QT_QPA_PLATFORM: offscreen
DISPLAY: ":99.0"
run: |
xvfb-run --auto-servernum poetry run pytest
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
sleep 3
poetry run pytest

0 comments on commit ea968e1

Please sign in to comment.