@@ -12,18 +12,30 @@ 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
1719 - name : Set up Python ${{ matrix.python-version }}
20+ id : setup-python
1821 uses : actions/setup-python@v6
1922 with :
2023 python-version : ${{ matrix.python-version }}
2124
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+
2232 - name : Install tox and plugins
33+ id : install-tox
2334 run : |
24- python -m pip install tox tox-gh-actions tox-uv uv
35+ uv pip install --system tox tox -uv tox-gh-actions
2536
2637 - name : Run unit tests with tox
38+ id : test
2739 run : tox
2840
2941 tests-old :
@@ -35,23 +47,33 @@ jobs:
3547 python-version : ['3.7', '3.8']
3648
3749 steps :
38- - uses : actions/checkout@v5
50+ - name : Checkout project
51+ id : checkout
52+ uses : actions/checkout@v5
3953
4054 - name : Set up Python 3.13 (tox runner)
55+ id : setup-python
4156 uses : actions/setup-python@v6
4257 with :
4358 python-version : ' 3.13'
4459
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
4666 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
4868
4969 - name : Set up target Python ${{ matrix.python-version }}
70+ id : setup-target-python
5071 uses : actions/setup-python@v6
5172 with :
5273 python-version : ${{ matrix.python-version }}
5374
5475 - name : Run unit tests with tox for target
76+ id : test
5577 shell : bash
5678 run : |
5779 ENV="py${{ matrix.python-version }}"; ENV=${ENV/./}
0 commit comments