diff --git a/.github/workflows/macos-test.yml b/.github/workflows/macos-test.yml index b89be000f..82e7a3d15 100644 --- a/.github/workflows/macos-test.yml +++ b/.github/workflows/macos-test.yml @@ -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