|
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} |
34 | | - - {name: Typing, python: '3.12', os: ubuntu-latest, tox: typing} |
| 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} |
35 | 34 | steps: |
36 | | - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 |
37 | | - - uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c |
| 35 | + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 |
| 36 | + - uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 |
38 | 37 | with: |
39 | 38 | python-version: ${{ matrix.python }} |
40 | | - cache: 'pip' |
| 39 | + allow-prereleases: true |
| 40 | + cache: pip |
| 41 | + cache-dependency-path: requirements*/*.txt |
| 42 | + - run: pip install tox |
| 43 | + - run: tox run -e ${{ matrix.tox || format('py{0}', matrix.python) }} |
| 44 | + typing: |
| 45 | + runs-on: ubuntu-latest |
| 46 | + steps: |
| 47 | + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 |
| 48 | + - uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 |
| 49 | + with: |
| 50 | + python-version: '3.x' |
| 51 | + cache: pip |
41 | 52 | cache-dependency-path: requirements*/*.txt |
42 | 53 | - name: cache mypy |
43 | | - uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 |
| 54 | + uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 |
44 | 55 | with: |
45 | 56 | path: ./.mypy_cache |
46 | | - key: mypy|${{ matrix.python }}|${{ hashFiles('pyproject.toml') }} |
47 | | - if: matrix.tox == 'typing' |
| 57 | + key: mypy|${{ hashFiles('pyproject.toml') }} |
48 | 58 | - run: pip install tox |
49 | | - - run: tox run -e ${{ matrix.tox }} |
| 59 | + - run: tox run -e typing |
0 commit comments