Skip to content

Commit

Permalink
Install additional dependencies in workflow to support pyqtgraph
Browse files Browse the repository at this point in the history
  • Loading branch information
tjstienstra committed Jan 30, 2024
1 parent d466ae5 commit 8b4866b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
env:
DISPLAY: ':99.0'
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -46,6 +48,12 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: poetry install --with test --all-extras
- name: Install pyqtgraph dependencies
# https://pytest-qt.readthedocs.io/en/latest/troubleshooting.html#github-actions
run: |
sudo apt-get update
sudo apt install libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 x11-utils
/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
- name: Run tests
run: poetry run pytest

Expand Down

0 comments on commit 8b4866b

Please sign in to comment.