Skip to content

Commit 6609763

Browse files
authored
Fix MacOS pygame no hardware accelerated device error (#1190)
1 parent 4c90946 commit 6609763

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/macos-test.yml

+12-4
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,33 @@ name: MacOS tests
33

44
on:
55
push:
6-
branches: [master]
6+
branches: [none]
77

88
permissions:
99
contents: read
1010

1111
jobs:
1212
macos-test:
13-
runs-on: macos-11
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
matrix:
16+
# Big Sur, Monterey
17+
os: [macos-11, macos-12]
18+
python-version: ['3.8', '3.9', '3.10', '3.11']
1419
steps:
1520
- uses: actions/checkout@v4
16-
- name: Set up Python 3.11
21+
- name: Set up Python ${{ matrix.python-version }}
1722
uses: actions/setup-python@v4
1823
with:
19-
python-version: 3.11
24+
python-version: ${{ matrix.python-version }}
2025
- name: Install dependencies
2126
run: |
2227
pip install -e .[all]
2328
pip install -e .[testing]
2429
AutoROM -v
30+
- name: Set dummy SDL video driver
31+
run: |
32+
export SDL_VIDEODRIVER=dummy
2533
- name: Full Python tests
2634
run: |
2735
pytest -v --cov=pettingzoo --cov-report term

0 commit comments

Comments
 (0)