11name : Tests
22on :
3+ pull_request :
4+ paths-ignore : ['docs/**', 'README.md']
35 push :
46 branches : [main, stable]
5- paths-ignore : ['docs/**', '*.md', '*.rst']
6- pull_request :
7- paths-ignore : [ 'docs/**', '*.md', '*.rst' ]
7+ paths-ignore : ['docs/**', 'README.md']
88jobs :
99 tests :
1010 name : ${{ matrix.name || matrix.python }}
@@ -14,36 +14,36 @@ jobs:
1414 matrix :
1515 include :
1616 - {python: '3.13'}
17+ - {name: Windows, python: '3.13', os: windows-latest}
18+ - {name: Mac, python: '3.13', os: macos-latest}
1719 - {python: '3.12'}
18- - {name: Windows, python: '3.12', os: windows-latest}
19- - {name: Mac, python: '3.12', os: macos-latest}
2020 - {python: '3.11'}
2121 - {python: '3.10'}
22- - {python: '3.9'}
23- - {name: PyPy, python: 'pypy-3.10', tox: pypy310}
22+ - {name: PyPy, python: 'pypy-3.11', tox: pypy3.11}
2423 steps :
2524 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26- - uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
25+ - uses : astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.0
26+ with :
27+ enable-cache : true
28+ prune-cache : false
29+ - uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
2730 with :
2831 python-version : ${{ matrix.python }}
29- allow-prereleases : true
30- cache : pip
31- cache-dependency-path : requirements*/*.txt
32- - run : pip install tox
33- - run : tox run -e ${{ matrix.tox || format('py{0}', matrix.python) }}
32+ - run : uv run --locked tox run -e ${{ matrix.tox || format('py{0}', matrix.python) }}
3433 typing :
3534 runs-on : ubuntu-latest
3635 steps :
3736 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
38- - uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
37+ - uses : astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.0
38+ with :
39+ enable-cache : true
40+ prune-cache : false
41+ - uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
3942 with :
40- python-version : ' 3.x'
41- cache : pip
42- cache-dependency-path : requirements*/*.txt
43+ python-version-file : pyproject.toml
4344 - name : cache mypy
44- uses : actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
45+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
4546 with :
4647 path : ./.mypy_cache
4748 key : mypy|${{ hashFiles('pyproject.toml') }}
48- - run : pip install tox
49- - run : tox run -e typing
49+ - run : uv run --locked tox run -e typing
0 commit comments