Skip to content

Commit

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

0 comments on commit ec8adfe

Please sign in to comment.