@@ -14,41 +14,64 @@ concurrency:
1414
1515jobs :
1616 test :
17- name : Run ${{ matrix.tox_env }} on ${{ matrix.os }}
18- runs-on : ${{ matrix.os }}
17+ name : test ${{ matrix.py }}
18+ runs-on : ubuntu-latest
1919 strategy :
2020 fail-fast : false
2121 matrix :
22- tox_env :
22+ py :
23+ - " 3.13"
2324 - " 3.12"
2425 - " 3.11"
2526 - " 3.10"
2627 - " 3.9"
28+ steps :
29+ - name : Install the latest version of uv
30+ uses : astral-sh/setup-uv@v2
31+ with :
32+ enable-cache : true
33+ github-token : ${{ secrets.GITHUB_TOKEN }}
34+ - name : setup python for tox
35+ uses : actions/setup-python@v5
36+ with :
37+ python-version : " 3.12"
38+ - name : install tox
39+ run : uv pip install tox tox-uv --system
40+ - uses : actions/checkout@v4
41+ - name : setup python for test ${{ matrix.py }}
42+ uses : actions/setup-python@v5
43+ with :
44+ python-version : ${{ matrix.py }}
45+ allow-prereleases : true
46+ - name : setup test suite
47+ run : tox run -vv --notest --skip-missing-interpreters false -e ${{ matrix.py }}
48+ - name : run test suite
49+ run : tox run --skip-pkg-install -e ${{ matrix.py }}
50+
51+ check :
52+ name : tox env ${{ matrix.tox_env }}
53+ runs-on : ubuntu-latest
54+ strategy :
55+ fail-fast : false
56+ matrix :
57+ tox_env :
2758 - type
2859 - dev
2960 - readme
30- os :
31- - ubuntu-latest
32- - windows-latest
33- - macos-latest
3461 steps :
35- - name : Set up uv for tox
36- uses : yezz123/setup-uv@v4
37- - name : Set up python for tox
62+ - name : Install the latest version of uv
63+ uses : astral-sh/setup-uv@v2
64+ with :
65+ enable-cache : true
66+ github-token : ${{ secrets.GITHUB_TOKEN }}
67+ - uses : actions/checkout@v4
68+ - name : setup Python 3.12
3869 uses : actions/setup-python@v5
3970 with :
4071 python-version : " 3.12"
41- - name : Install tox-uv
72+ - name : install tox
4273 run : uv pip install tox tox-uv --system
43- - name : Checkout source code
44- uses : actions/checkout@v4
45- - name : Set up ${{ startsWith(matrix.tox_env, '3.') && matrix.tox_env || '3.12' }} for test
46- uses : actions/setup-python@v5
47- with :
48- python-version : ${{ startsWith(matrix.tox_env, '3.') && matrix.tox_env || '3.12' }}
49- - name : Set up test environment
50- run : tox -vv -e ${{ matrix.tox_env }} --notest
51- - name : Run test environment
52- run : tox -e ${{ matrix.tox_env }} --skip-pkg-install
53- env :
54- PYTEST_ADDOPTS : " -vv --showlocals"
74+ - name : Setup test suite
75+ run : tox -vv --notest --skip-missing-interpreters false -e ${{ matrix.tox_env }}
76+ - name : Run test suite
77+ run : tox --skip-pkg-install -e ${{ matrix.tox_env }}
0 commit comments