1
1
name : Tests
2
2
on :
3
+ pull_request :
4
+ paths-ignore : ['docs/**', 'README.md']
3
5
push :
4
6
branches : [main, stable]
5
- paths-ignore : ['docs/**', '*.md', '*.rst']
6
- pull_request :
7
- paths-ignore : [ 'docs/**', '*.md', '*.rst' ]
7
+ paths-ignore : ['docs/**', 'README.md']
8
8
jobs :
9
9
tests :
10
10
name : ${{ matrix.name || matrix.python }}
@@ -14,38 +14,39 @@ jobs:
14
14
matrix :
15
15
include :
16
16
- {python: '3.13'}
17
+ - {name: Windows, python: '3.13', os: windows-latest}
18
+ - {name: Mac, python: '3.13', os: macos-latest}
17
19
- {python: '3.12'}
18
- - {name: Windows, python: '3.12', os: windows-latest}
19
- - {name: Mac, python: '3.12', os: macos-latest}
20
20
- {python: '3.11'}
21
21
- {python: '3.10'}
22
22
- {python: '3.9'}
23
- - {name: PyPy, python: 'pypy-3.10 ', tox: pypy310 }
24
- - {name: Minimum Versions, python: '3.12 ', tox: py -min}
25
- - {name: Development Versions, python: '3.9 ', tox: py -dev}
23
+ - {name: PyPy, python: 'pypy-3.11 ', tox: pypy3.11 }
24
+ - {name: Minimum Versions, python: '3.13 ', tox: tests -min}
25
+ - {name: Development Versions, python: '3.10 ', tox: tests -dev}
26
26
steps :
27
27
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28
- - uses : actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
28
+ - uses : astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1
29
+ with :
30
+ enable-cache : true
31
+ prune-cache : false
32
+ - uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
29
33
with :
30
34
python-version : ${{ matrix.python }}
31
- allow-prereleases : true
32
- cache : pip
33
- cache-dependency-path : requirements*/*.txt
34
- - run : pip install tox
35
- - run : tox run -e ${{ matrix.tox || format('py{0}', matrix.python) }}
35
+ - run : uv run --locked tox run -e ${{ matrix.tox || format('py{0}', matrix.python) }}
36
36
typing :
37
37
runs-on : ubuntu-latest
38
38
steps :
39
39
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
40
- - uses : actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
40
+ - uses : astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1
41
+ with :
42
+ enable-cache : true
43
+ prune-cache : false
44
+ - uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
41
45
with :
42
- python-version : ' 3.x'
43
- cache : pip
44
- cache-dependency-path : requirements*/*.txt
46
+ python-version-file : pyproject.toml
45
47
- name : cache mypy
46
48
uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
47
49
with :
48
50
path : ./.mypy_cache
49
51
key : mypy|${{ hashFiles('pyproject.toml') }}
50
- - run : pip install tox
51
- - run : tox run -e typing
52
+ - run : uv run --locked tox run -e typing
0 commit comments