diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index eadc693..dc6bcd3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,11 +34,19 @@ jobs: pip3 install --upgrade pip pip3 install -r requirements.txt pip3 install -r requirements_dev.txt + - name: Install xvfb on macOS + if: runner.os == 'macOS' + run: | + brew install xvfb - name: Tests and coverage env: QT_QPA_PLATFORM: offscreen run: | - invoke coverage + if [[ "$RUNNER_OS" == "Mac OS X" ]]; then + xvfb-run -s "-screen 0 1024x768x24" invoke coverage + else + invoke coverage + fi - name: Lint run: | invoke lint