@@ -39,33 +39,24 @@ jobs:
3939 - uses : actions/checkout@v4
4040 with :
4141 persist-credentials : false
42- - name : Set up Python
43- uses : actions /setup-python @v5
42+ - name : Install uv + caching
43+ uses : astral-sh /setup-uv @v5
4444 with :
45- python-version : ${{ matrix.config[0] }}
46- allow-prereleases : true
47- - name : Pip cache
48- uses : actions/cache@v4
49- with :
50- path : ~/.cache/pip
51- key : ${{ runner.os }}-pip-${{ matrix.config[0] }}-${{ hashFiles('setup.*', 'tox.ini') }}
52- restore-keys : |
53- ${{ runner.os }}-pip-${{ matrix.config[0] }}-
54- ${{ runner.os }}-pip-
55- - name : Install dependencies
56- run : |
57- python -m pip install --upgrade pip
58- pip install tox
45+ enable-cache : true
46+ cache-dependency-glob : |
47+ setup.*
48+ tox.ini
49+ python-version : ${{ matrix.matrix.config[0] }}
50+ github-token : ${{ secrets.GITHUB_TOKEN }}
5951 - name : Test
6052 if : ${{ !startsWith(runner.os, 'Mac') }}
61- run : tox -e ${{ matrix.config[1] }}
53+ run : uvx --with tox-uv tox -e ${{ matrix.config[1] }}
6254 - name : Test (macOS)
6355 if : ${{ startsWith(runner.os, 'Mac') }}
64- run : tox -e ${{ matrix.config[1] }}-universal2
56+ run : uvx --with tox-uv tox -e ${{ matrix.config[1] }}-universal2
6557 - name : Coverage
6658 if : matrix.config[1] == 'coverage'
6759 run : |
68- pip install coveralls
69- coveralls --service=github
60+ uvx coveralls --service=github
7061 env :
7162 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments