| 1 | name: Run Tox tests |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: |
| 6 | - main |
| 7 | - releases/* |
| 8 | pull_request: |
| 9 | |
| 10 | jobs: |
| 11 | build: |
| 12 | runs-on: ${{ matrix.os }} |
| 13 | strategy: |
| 14 | matrix: |
| 15 | os: [ubuntu-24.04, windows-latest, ubuntu-24.04-arm, windows-11-arm] |
| 16 | python-version: [ |
| 17 | "3.10", |
| 18 | "3.11", |
| 19 | "3.12", |
| 20 | "3.13", |
| 21 | "3.14", |
| 22 | ] |
| 23 | include: |
| 24 | - os: macos-latest |
| 25 | python-version: "3.14" |
| 26 | exclude: |
| 27 | - os: windows-11-arm |
| 28 | python-version: "3.10" |
| 29 | name: Test Python ${{ matrix.python-version }} on ${{ matrix.os }} |
| 30 | steps: |
| 31 | - uses: actions/checkout@v4 |
| 32 | with: |
| 33 | fetch-depth: 20 |
| 34 | - name: Setup python |
| 35 | uses: actions/setup-python@v6 |
| 36 | with: |
| 37 | python-version: ${{ matrix.python-version }} |
| 38 | - name: Install dependencies |
| 39 | run: | |
| 40 | pip install -U pip tox wheel setuptools setuptools_scm[toml] |
| 41 | pip install tox-gh-actions |
| 42 | - name: Test project with tox |
| 43 | run: | |
| 44 | tox |