|
9 | 9 | permissions: {} |
10 | 10 |
|
11 | 11 | jobs: |
12 | | - build: |
13 | | - |
| 12 | + test: |
| 13 | + name: test with ${{ matrix.env }} on ${{ matrix.os }} |
| 14 | + runs-on: ${{ matrix.os }} |
14 | 15 | strategy: |
| 16 | + fail-fast: false |
15 | 17 | matrix: |
16 | | - platform: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, windows-latest] |
17 | | - python-version: [3.9, "3.10", 3.11, 3.12, 3.13] |
18 | | - |
19 | | - name: Python ${{ matrix.python-version }} on ${{ matrix.platform }} |
20 | | - runs-on: ${{ matrix.platform }} |
21 | | - |
| 18 | + env: [3.9, "3.10", 3.11, 3.12, 3.13] |
| 19 | + os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, windows-latest] |
22 | 20 | steps: |
23 | | - - name: Checkout |
24 | | - uses: actions/checkout@v4 |
| 21 | + - uses: actions/checkout@v4 |
25 | 22 | with: |
26 | 23 | submodules: true |
27 | 24 | persist-credentials: false |
28 | | - |
29 | | - - name: Set up Python ${{ matrix.python-version }} |
30 | | - uses: actions/setup-python@v5 |
31 | | - with: |
32 | | - python-version: ${{ matrix.python-version }} |
33 | | - |
34 | | - - name: Install dependencies |
35 | | - run: | |
36 | | - python -m pip install --upgrade pip |
37 | | - pip install setuptools tox tox-gh-actions |
38 | | -
|
39 | | - - name: Test with tox |
40 | | - run: tox |
| 25 | + - name: Install the latest version of uv |
| 26 | + uses: astral-sh/setup-uv@v3 |
| 27 | + - name: Install tox |
| 28 | + run: uv tool install --python-preference only-managed --python 3.13 tox --with tox-uv --with tox-gh |
| 29 | + - name: Install Python |
| 30 | + if: matrix.env != '3.13' |
| 31 | + run: uv python install --python-preference only-managed ${{ matrix.env }} |
| 32 | + - name: Setup test suite |
| 33 | + run: tox run -vv --notest --skip-missing-interpreters false |
| 34 | + env: |
| 35 | + TOX_GH_MAJOR_MINOR: ${{ matrix.env }} |
| 36 | + - name: Run test suite |
| 37 | + run: tox run --skip-pkg-install |
| 38 | + env: |
| 39 | + TOX_GH_MAJOR_MINOR: ${{ matrix.env }} |
0 commit comments