Skip to content

Commit

Permalink
ci: fix linux pyqt6 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Nov 20, 2023
1 parent d71a1d1 commit e56c234
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
deps: ["none", "all"]
env:
# Display must be available globally for linux to know where xvfb is
DISPLAY: :0
DISPLAY: ":99.0"
QT_SELECT: "qt6"

steps:
- uses: actions/checkout@v3
Expand All @@ -29,7 +30,9 @@ jobs:
- name: Setup xvfb (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get install -y xvfb libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxcb-xinerama0 libxcb-xinput0 libxcb-xfixes0
# Stuff copied wildly from several stackoverflow posts
sudo apt-get install -y xvfb libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xinput0 libxcb-xfixes0 libxcb-shape0 libglib2.0-0 libgl1-mesa-dev
sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
# start xvfb in the background
sudo /usr/bin/Xvfb $DISPLAY -screen 0 1280x1024x24 &
- name: Install Python dependencies
Expand Down Expand Up @@ -57,9 +60,6 @@ jobs:
run: |
chipstream-gui --version
- name: Test with pytest
env:
# github token required for testing update.py
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
coverage run --source=chipstream -m pytest -x tests
- name: Upload coverage to Codecov
Expand Down

0 comments on commit e56c234

Please sign in to comment.