Skip to content

Commit c640059

Browse files
committed
simplify matrix
1 parent 8b45abd commit c640059

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.github/workflows/tests.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@ on:
1515
- '*.rst'
1616
jobs:
1717
tests:
18-
name: ${{ matrix.name }}
19-
runs-on: ${{ matrix.os }}
18+
name: ${{ matrix.name || matrix.python }}
19+
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
2020
strategy:
2121
fail-fast: false
2222
matrix:
2323
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}
3434
steps:
3535
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
3636
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
@@ -40,7 +40,7 @@ jobs:
4040
cache: pip
4141
cache-dependency-path: requirements*/*.txt
4242
- run: pip install tox
43-
- run: tox run -e py${{ matrix.python }}
43+
- run: tox run -e ${{ matrix.tox || format('py{0}', matrix.python) }}
4444
typing:
4545
runs-on: ubuntu-latest
4646
steps:

0 commit comments

Comments
 (0)