@@ -27,50 +27,58 @@ jobs:
2727 - windows-latest
2828 - macos-latest
2929 steps :
30- - name : setup python for tox
31- uses : actions/setup-python@v5
30+ - uses : actions/checkout@v4
31+ with :
32+ fetch-depth : 0
33+ - name : Install the latest version of uv
34+ uses : astral-sh/setup-uv@v3
3235 with :
33- python-version : " 3.12"
34- - name : install tox-uv
35- run : python -m pip install tox-uv
36+ enable-cache : true
37+ cache-dependency-glob : " pyproject.toml"
38+ github-token : ${{ secrets.GITHUB_TOKEN }}
39+ - name : Install tox
40+ run : uv tool install --python-preference only-managed --python 3.13 tox --with tox-uv
41+ - name : Install Python
42+ if : startsWith(matrix.env, '3.') && matrix.env != '3.13'
43+ run : uv python install --python-preference only-managed ${{ matrix.env }}
3644 - uses : moonrepo/setup-rust@v1
3745 with :
3846 cache-base : main
3947 bins : cargo-tarpaulin
4048 env :
4149 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42- - name : setup python for test ${{ matrix.py }}
43- uses : actions/setup-python@v5
44- with :
45- python-version : ${{ matrix.py }}
46- allow-prereleases : true
4750 - name : setup test suite
4851 run : tox run -vv --notest --skip-missing-interpreters false -e ${{ matrix.py }}
4952 - name : run test suite
5053 run : tox run --skip-pkg-install -e ${{ matrix.py }}
54+ env :
55+ PYTEST_ADDOPTS : " -vv --durations=20"
5156
5257 check :
53- name : tox env ${{ matrix.tox_env }}
58+ name : tox env ${{ matrix.env }}
5459 runs-on : ubuntu-latest
5560 strategy :
5661 fail-fast : false
5762 matrix :
58- tox_env :
63+ env :
5964 - type
6065 - dev
61- - readme
66+ - pkg_meta
6267 steps :
6368 - uses : actions/checkout@v4
64- - name : setup Python 3.12
65- uses : actions/setup-python@v5
6669 with :
67- python-version : " 3.12"
68- - name : install tox-uv
69- run : python -m pip install tox-uv
70- - uses : moonrepo/setup-rust@v1
70+ fetch-depth : 0
71+ - name : Install the latest version of uv
72+ uses : astral-sh/setup-uv@v3
7173 with :
72- cache-base : main
74+ enable-cache : true
75+ cache-dependency-glob : " pyproject.toml"
76+ github-token : ${{ secrets.GITHUB_TOKEN }}
77+ - name : Install tox
78+ run : uv tool install --python-preference only-managed --python 3.13 tox --with tox-uv
7379 - name : Setup test suite
74- run : tox -vv --notest --skip-missing-interpreters false -e ${{ matrix.tox_env }}
80+ run : tox run -vv --notest --skip-missing-interpreters false -e ${{ matrix.env }}
7581 - name : Run test suite
76- run : tox --skip-pkg-install -e ${{ matrix.tox_env }}
82+ run : tox run --skip-pkg-install -e ${{ matrix.env }}
83+ env :
84+ PYTEST_ADDOPTS : " -vv --durations=20"
0 commit comments