|
15 | 15 | - '*.rst' |
16 | 16 | jobs: |
17 | 17 | tests: |
18 | | - name: ${{ matrix.name }} |
19 | | - runs-on: ${{ matrix.os }} |
| 18 | + name: ${{ matrix.name || matrix.python }} |
| 19 | + runs-on: ${{ matrix.os || 'ubuntu-latest' }} |
20 | 20 | strategy: |
21 | 21 | fail-fast: false |
22 | 22 | matrix: |
23 | 23 | include: |
24 | | - - {name: Linux, python: '3.12', os: ubuntu-latest, tox: py312} |
25 | | - - {name: Windows, python: '3.12', os: windows-latest, tox: py312} |
26 | | - - {name: Mac, python: '3.12', os: macos-latest, tox: py312} |
27 | | - - {name: '3.11', python: '3.11', os: ubuntu-latest, tox: py311} |
28 | | - - {name: '3.10', python: '3.10', os: ubuntu-latest, tox: py310} |
29 | | - - {name: '3.9', python: '3.9', os: ubuntu-latest, tox: py39} |
30 | | - - {name: '3.8', python: '3.8', os: ubuntu-latest, tox: py38} |
31 | | - - {name: 'PyPy', python: 'pypy-3.10', os: ubuntu-latest, tox: pypy310} |
32 | | - - {name: 'Minimum Versions', python: '3.12', os: ubuntu-latest, tox: py312-min} |
33 | | - - {name: 'Development Versions', python: '3.8', os: ubuntu-latest, tox: py38-dev} |
| 24 | + - {python: '3.12'} |
| 25 | + - {name: Windows, python: '3.12', os: windows-latest} |
| 26 | + - {name: Mac, python: '3.12', os: macos-latest} |
| 27 | + - {python: '3.11'} |
| 28 | + - {python: '3.10'} |
| 29 | + - {python: '3.9'} |
| 30 | + - {python: '3.8'} |
| 31 | + - {name: PyPy, python: 'pypy-3.10', tox: pypy310} |
| 32 | + - {name: Minimum Versions, python: '3.12', tox: py-min} |
| 33 | + - {name: Development Versions, python: '3.8', tox: py-dev} |
34 | 34 | steps: |
35 | 35 | - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 |
36 | 36 | - uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 |
|
40 | 40 | cache: pip |
41 | 41 | cache-dependency-path: requirements*/*.txt |
42 | 42 | - run: pip install tox |
43 | | - - run: tox run -e py${{ matrix.python }} |
| 43 | + - run: tox run -e ${{ matrix.tox || format('py{0}', matrix.python) }} |
44 | 44 | typing: |
45 | 45 | runs-on: ubuntu-latest |
46 | 46 | steps: |
|
0 commit comments