Skip to content

Commit

Permalink
Fix MacOS pygame no hardware accelerated device error (#1190)
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottower authored Mar 14, 2024
1 parent 4c90946 commit 6609763
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/macos-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,33 @@ name: MacOS tests

on:
push:
branches: [master]
branches: [none]

permissions:
contents: read

jobs:
macos-test:
runs-on: macos-11
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Big Sur, Monterey
os: [macos-11, macos-12]
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: 3.11
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -e .[all]
pip install -e .[testing]
AutoROM -v
- name: Set dummy SDL video driver
run: |
export SDL_VIDEODRIVER=dummy
- name: Full Python tests
run: |
pytest -v --cov=pettingzoo --cov-report term

0 comments on commit 6609763

Please sign in to comment.