From 73899380ecebe93b3c3f1352b58e0608ea7a9168 Mon Sep 17 00:00:00 2001 From: introkun Date: Mon, 19 Jun 2023 22:27:37 -0300 Subject: [PATCH] fexid mac CI --- .github/workflows/main.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dc6bcd3..435bd9e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,16 +34,20 @@ jobs: pip3 install --upgrade pip pip3 install -r requirements.txt pip3 install -r requirements_dev.txt - - name: Install xvfb on macOS + - name: Install xvfbwrapper on macOS if: runner.os == 'macOS' run: | - brew install xvfb + pip install xvfbwrapper - name: Tests and coverage env: QT_QPA_PLATFORM: offscreen run: | if [[ "$RUNNER_OS" == "Mac OS X" ]]; then - xvfb-run -s "-screen 0 1024x768x24" invoke coverage + python -c "import xvfbwrapper + with xvfbwrapper.Xvfb() as xvfb: + xvfb.start() + import invoke + invoke.main(['coverage'])" else invoke coverage fi