@@ -12,18 +12,30 @@ jobs:
12
12
python-version : ['3.9', '3.10', '3.11', '3.12', '3.13', 'pypy3.9', 'pypy3.10']
13
13
14
14
steps :
15
- - uses : actions/checkout@v5
15
+ - name : Checkout project
16
+ id : checkout
17
+ uses : actions/checkout@v5
16
18
17
19
- name : Set up Python ${{ matrix.python-version }}
20
+ id : setup-python
18
21
uses : actions/setup-python@v6
19
22
with :
20
23
python-version : ${{ matrix.python-version }}
21
24
25
+ - name : Install uv
26
+ id : setup-uv
27
+ uses : astral-sh/setup-uv@v6
28
+ with :
29
+ enable-cache : true
30
+ cache-suffix : ${{ matrix.python-version }}
31
+
22
32
- name : Install tox and plugins
33
+ id : install-tox
23
34
run : |
24
- python -m pip install tox tox-gh-actions tox-uv uv
35
+ uv pip install --system tox tox -uv tox-gh-actions
25
36
26
37
- name : Run unit tests with tox
38
+ id : test
27
39
run : tox
28
40
29
41
tests-old :
@@ -35,23 +47,33 @@ jobs:
35
47
python-version : ['3.7', '3.8']
36
48
37
49
steps :
38
- - uses : actions/checkout@v5
50
+ - name : Checkout project
51
+ id : checkout
52
+ uses : actions/checkout@v5
39
53
40
54
- name : Set up Python 3.13 (tox runner)
55
+ id : setup-python
41
56
uses : actions/setup-python@v6
42
57
with :
43
58
python-version : ' 3.13'
44
59
45
- - name : Install tox and plugins (with Python 3.13)
60
+ - name : Install uv
61
+ id : setup-uv
62
+ uses : astral-sh/setup-uv@v6
63
+
64
+ - name : Install tox and plugins
65
+ id : install-tox
46
66
run : |
47
- python3.13 -m pip install tox tox-gh-actions tox-uv uv
67
+ uv pip install --system tox tox -uv tox-gh-actions
48
68
49
69
- name : Set up target Python ${{ matrix.python-version }}
70
+ id : setup-target-python
50
71
uses : actions/setup-python@v6
51
72
with :
52
73
python-version : ${{ matrix.python-version }}
53
74
54
75
- name : Run unit tests with tox for target
76
+ id : test
55
77
shell : bash
56
78
run : |
57
79
ENV="py${{ matrix.python-version }}"; ENV=${ENV/./}
0 commit comments