Skip to content

Commit

Permalink
fexid mac CI
Browse files Browse the repository at this point in the history
  • Loading branch information
introkun committed Jun 20, 2023
1 parent ec8adfe commit 7389938
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7389938

Please sign in to comment.