|
1 | | -name: Tests |
2 | | -on: |
3 | | - pull_request: |
4 | | - paths-ignore: ['docs/**', 'README.md'] |
5 | | - push: |
6 | | - branches: [main, stable] |
7 | | - paths-ignore: ['docs/**', 'README.md'] |
8 | | -permissions: {} |
9 | | -concurrency: |
10 | | - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
11 | | - cancel-in-progress: true |
12 | | -jobs: |
13 | | - tests: |
14 | | - name: ${{ matrix.name || matrix.python }} |
15 | | - runs-on: ${{ matrix.os || 'ubuntu-latest' }} |
16 | | - strategy: |
17 | | - fail-fast: false |
18 | | - matrix: |
19 | | - include: |
20 | | - - {python: '3.14'} |
21 | | - - {python: '3.14t'} |
22 | | - - {name: Windows, python: '3.14', os: windows-latest} |
23 | | - - {name: Mac, python: '3.14', os: macos-latest} |
24 | | - - {python: '3.13'} |
25 | | - - {python: '3.12'} |
26 | | - - {python: '3.11'} |
27 | | - - {python: '3.10'} |
28 | | - - {python: '3.9'} |
29 | | - - {name: PyPy, python: 'pypy-3.11', tox: pypy3.11} |
30 | | - - {name: Minimum Versions, python: '3.14', tox: tests-min} |
31 | | - - {name: Development Versions, python: '3.10', tox: tests-dev} |
32 | | - steps: |
33 | | - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
34 | | - with: |
35 | | - persist-credentials: false |
36 | | - - uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0 |
37 | | - with: |
38 | | - enable-cache: true |
39 | | - prune-cache: false |
40 | | - - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 |
41 | | - with: |
42 | | - python-version: ${{ matrix.python }} |
43 | | - - run: uv run --locked --no-default-groups --group dev tox run |
44 | | - env: |
45 | | - TOX_ENV: ${{ matrix.tox || format('py{0}', matrix.python) }} |
46 | | - typing: |
47 | | - runs-on: ubuntu-latest |
48 | | - steps: |
49 | | - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
50 | | - with: |
51 | | - persist-credentials: false |
52 | | - - uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0 |
53 | | - with: |
54 | | - enable-cache: true |
55 | | - prune-cache: false |
56 | | - - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 |
57 | | - with: |
58 | | - python-version-file: pyproject.toml |
59 | | - - name: cache mypy |
60 | | - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 |
61 | | - with: |
62 | | - path: ./.mypy_cache |
63 | | - key: mypy|${{ hashFiles('pyproject.toml') }} |
64 | | - - run: uv run --locked --no-default-groups --group dev tox run -e typing |
| 1 | +name: Tests |
| 2 | +on: |
| 3 | + pull_request: |
| 4 | + paths-ignore: ['docs/**', 'README.md'] |
| 5 | + push: |
| 6 | + branches: [main, stable] |
| 7 | + paths-ignore: ['docs/**', 'README.md'] |
| 8 | +permissions: {} |
| 9 | +concurrency: |
| 10 | + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
| 11 | + cancel-in-progress: true |
| 12 | +jobs: |
| 13 | + tests: |
| 14 | + name: ${{ matrix.name || matrix.python }} |
| 15 | + runs-on: ${{ matrix.os || 'ubuntu-latest' }} |
| 16 | + strategy: |
| 17 | + fail-fast: false |
| 18 | + matrix: |
| 19 | + include: |
| 20 | + - {python: '3.14'} |
| 21 | + - {python: '3.14t'} |
| 22 | + - {name: Windows, python: '3.14', os: windows-latest} |
| 23 | + - {name: Mac, python: '3.14', os: macos-latest} |
| 24 | + - {python: '3.13'} |
| 25 | + - {python: '3.12'} |
| 26 | + - {python: '3.11'} |
| 27 | + - {python: '3.10'} |
| 28 | + - {python: '3.9'} |
| 29 | + - {name: PyPy, python: 'pypy-3.11', tox: pypy3.11} |
| 30 | + - {name: Minimum Versions, python: '3.14', tox: tests-min} |
| 31 | + - {name: Development Versions, python: '3.10', tox: tests-dev} |
| 32 | + steps: |
| 33 | + - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 |
| 34 | + with: |
| 35 | + persist-credentials: false |
| 36 | + - uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 |
| 37 | + with: |
| 38 | + enable-cache: true |
| 39 | + prune-cache: false |
| 40 | + - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 |
| 41 | + with: |
| 42 | + python-version: ${{ matrix.python }} |
| 43 | + - run: uv run --locked --no-default-groups --group dev tox run |
| 44 | + env: |
| 45 | + TOX_ENV: ${{ matrix.tox || format('py{0}', matrix.python) }} |
| 46 | + typing: |
| 47 | + runs-on: ubuntu-latest |
| 48 | + steps: |
| 49 | + - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 |
| 50 | + with: |
| 51 | + persist-credentials: false |
| 52 | + - uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 |
| 53 | + with: |
| 54 | + enable-cache: true |
| 55 | + prune-cache: false |
| 56 | + - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 |
| 57 | + with: |
| 58 | + python-version-file: pyproject.toml |
| 59 | + - name: cache mypy |
| 60 | + uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 |
| 61 | + with: |
| 62 | + path: ./.mypy_cache |
| 63 | + key: mypy|${{ hashFiles('pyproject.toml') }} |
| 64 | + - run: uv run --locked --no-default-groups --group dev tox run -e typing |
0 commit comments