@@ -2,8 +2,8 @@ name: Check
22on :
33 workflow_dispatch :
44 push :
5- branches : [ "main" ]
6- tags : [ "*" ]
5+ branches : ["main"]
6+ tags : ["*"]
77 pull_request :
88concurrency :
99 group : check-${{ github.ref }}
1616 fail-fast : false
1717 matrix :
1818 py :
19+ - " 3.13"
1920 - " 3.12"
2021 - " 3.11"
2122 - " 3.10"
@@ -32,27 +33,21 @@ jobs:
3233 python-version : " 3.12"
3334 - name : install tox-uv
3435 run : python -m pip install tox-uv
35- - uses : actions/checkout@v4
36- - run : rustup toolchain install stable --profile minimal
37- - uses : Swatinem/rust-cache@v2
38- - name : install tarpaulin
39- run : cargo install cargo-tarpaulin
36+ - uses : moonrepo/setup-rust@v1
37+ with :
38+ cache-base : main
39+ bins : cargo-tarpaulin
40+ env :
41+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4042 - name : setup python for test ${{ matrix.py }}
4143 uses : actions/setup-python@v5
4244 with :
4345 python-version : ${{ matrix.py }}
44- - name : Pick environment to run
45- run : |
46- import codecs; import os; import sys
47- env = "TOXENV=py{}{}\n".format(*sys.version_info[0:2])
48- print("Picked:\n{}for{}".format(env, sys.version))
49- with codecs.open(os.environ["GITHUB_ENV"], "a", "utf-8") as file_handler:
50- file_handler.write(env)
51- shell : python
46+ allow-prereleases : true
5247 - name : setup test suite
53- run : tox -vv --notest
48+ run : tox run -vv --notest --skip-missing-interpreters false -e ${{ matrix.py }}
5449 - name : run test suite
55- run : tox --skip-pkg-install
50+ run : tox run --skip-pkg-install -e ${{ matrix.py }}
5651
5752 check :
5853 name : tox env ${{ matrix.tox_env }}
7267 python-version : " 3.12"
7368 - name : install tox-uv
7469 run : python -m pip install tox-uv
75- - run : rustup toolchain install stable --profile minimal
76- - uses : Swatinem/rust-cache@v2
77- - name : run check for ${{ matrix.tox_env }}
78- run : python -m tox -e ${{ matrix.tox_env }}
79- env :
80- UPGRADE_ADVISORY : " yes"
70+ - uses : moonrepo/setup-rust@v1
71+ with :
72+ cache-base : main
73+ - name : Setup test suite
74+ run : tox -vv --notest --skip-missing-interpreters false -e ${{ matrix.tox_env }}
75+ - name : Run test suite
76+ run : tox --skip-pkg-install -e ${{ matrix.tox_env }}
0 commit comments