| 1 | name: PyTest |
| 2 | |
| 3 | on: [push, pull_request] |
| 4 | |
| 5 | jobs: |
| 6 | linux: |
| 7 | runs-on: ubuntu-latest |
| 8 | strategy: |
| 9 | matrix: |
| 10 | python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13', '3.14', 'pypy-3.10' ] |
| 11 | name: Python ${{ matrix.python-version }} ubuntu-latest |
| 12 | steps: |
| 13 | - uses: actions/checkout@v4 |
| 14 | - name: Setup python |
| 15 | uses: actions/setup-python@v5 |
| 16 | with: |
| 17 | python-version: ${{ matrix.python-version }} |
| 18 | - name: Install dependencies |
| 19 | run: | |
| 20 | python -m pip install --upgrade pip |
| 21 | pip install pytest |
| 22 | sudo apt-get install xvfb |
| 23 | - name: Run tests |
| 24 | run: | |
| 25 | xvfb-run pytest tests --ignore=tests/interactive |
| 26 | |
| 27 | osx: |
| 28 | runs-on: macos-latest |
| 29 | strategy: |
| 30 | matrix: |
| 31 | python-version: [ '3.10', '3.11', '3.12', '3.13', '3.14'] |
| 32 | name: Python ${{ matrix.python-version }} OSX |
| 33 | steps: |
| 34 | - uses: actions/checkout@v4 |
| 35 | - name: Setup python |
| 36 | uses: actions/setup-python@v5 |
| 37 | with: |
| 38 | python-version: ${{ matrix.python-version }} |
| 39 | - name: Install dependencies |
| 40 | run: | |
| 41 | pip install pytest |
| 42 | - name: Run tests |
| 43 | run: | |
| 44 | pytest tests --ignore=tests/interactive --ignore=tests/integration |
| 45 | |
| 46 | windows: |
| 47 | runs-on: windows-latest |
| 48 | strategy: |
| 49 | matrix: |
| 50 | python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13', '3.14'] |
| 51 | name: Python ${{ matrix.python-version }} Windows |
| 52 | steps: |
| 53 | - uses: actions/checkout@v4 |
| 54 | - name: Setup python |
| 55 | uses: actions/setup-python@v5 |
| 56 | with: |
| 57 | python-version: ${{ matrix.python-version }} |
| 58 | - uses: msys2/setup-msys2@v2 |
| 59 | with: |
| 60 | msystem: MINGW64 |
| 61 | release: false |
| 62 | install: mingw-w64-x86_64-mesa |
| 63 | - uses: ssciwr/setup-mesa-dist-win@v2 |
| 64 | - name: Install dependencies |
| 65 | run: | |
| 66 | pip install pytest |
| 67 | - name: Run tests |
| 68 | shell: pwsh |
| 69 | run: | |
| 70 | pytest tests --ignore=tests/interactive |