diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index f95fdb5..cdb92bd 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -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 @@ -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 @@ -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