@@ -12,29 +12,29 @@ jobs:
1212 python-version : ['3.9', '3.10', '3.11', '3.12', '3.13', 'pypy3.9', 'pypy3.10']
1313
1414 steps :
15- - uses : actions/checkout@v5
15+ - name : Checkout project
16+ id : checkout
17+ uses : actions/checkout@v5
1618
17- - name : Set up CPython with uv
18- if : ${{ !contains(matrix.python-version, 'pypy') }}
19- uses : astral-sh/setup-uv@v6
20- with :
21- python-version : ${{ matrix.python-version }}
22-
23- - name : Set up PyPy without uv
24- if : ${{ contains(matrix.python-version, 'pypy') }}
19+ - name : Set up Python ${{ matrix.python-version }}
20+ id : setup-python
2521 uses : actions/setup-python@v6
2622 with :
2723 python-version : ${{ matrix.python-version }}
2824
29- - name : Set up uv for PyPy
30- if : ${{ contains(matrix.python-version, 'pypy') }}
25+ - name : Install uv
26+ id : setup-uv
3127 uses : astral-sh/setup-uv@v6
28+ with :
29+ enable-cache : true
3230
3331 - name : Install tox and plugins
32+ id : install-tox
3433 run : |
35- uv pip install tox tox-gh-actions tox-uv
34+ uv pip install tox tox-uv tox-gh-actions
3635
3736 - name : Run unit tests with tox
37+ id : test
3838 run : tox
3939
4040 tests-old :
@@ -46,24 +46,36 @@ jobs:
4646 python-version : ['3.7', '3.8']
4747
4848 steps :
49- - uses : actions/checkout@v5
49+ - name : Checkout project
50+ id : checkout
51+ uses : actions/checkout@v5
5052
51- - name : Set up target Python ${{ matrix.python-version }} (for tox discovery)
53+ - name : Set up Python 3.13 (tox runner)
54+ id : setup-python
5255 uses : actions/setup-python@v6
5356 with :
54- python-version : ${{ matrix.python-version }}
57+ python-version : ' 3.13 '
5558
56- - name : Set up Python 3.13 (tox runner) with uv
59+ - name : Install uv
60+ id : setup-uv
5761 uses : astral-sh/setup-uv@v6
5862 with :
59- python-version : ' 3.13 '
63+ enable-cache : true
6064
61- - name : Install tox and plugins (with Python 3.13)
65+ - name : Install tox and plugins
66+ id : install-tox
6267 run : |
63- uv pip install tox tox-gh-actions tox-uv
68+ uv pip install tox tox-uv tox-gh-actions
69+
70+ - name : Set up target Python ${{ matrix.python-version }}
71+ id : setup-target-python
72+ uses : actions/setup-python@v6
73+ with :
74+ python-version : ${{ matrix.python-version }}
6475
6576 - name : Run unit tests with tox for target
77+ id : test
6678 shell : bash
6779 run : |
6880 ENV="py${{ matrix.python-version }}"; ENV=${ENV/./}
69- python -m tox -e "$ENV"
81+ python3.13 -m tox -e "$ENV"
0 commit comments