File tree Expand file tree Collapse file tree 1 file changed +27
-13
lines changed
Expand file tree Collapse file tree 1 file changed +27
-13
lines changed Original file line number Diff line number Diff line change @@ -31,17 +31,31 @@ jobs:
3131 steps :
3232 - uses : actions/checkout@v6
3333
34- - name : Set up Python ${{ matrix.python- version }}
35- uses : actions /setup-python@v6
34+ - name : Install the latest version of uv
35+ uses : astral-sh /setup-uv@v7
3636 with :
37- python-version : ${{ matrix.python-version }}
38- allow-prereleases : true
39-
40- - name : Upgrade pip
41- run : python -m pip install --upgrade pip
42-
43- - name : Install dependencies
44- run : pip install tox tox-gh-actions
45-
46- - name : Test with tox
47- run : tox
37+ enable-cache : true
38+ cache-dependency-glob : " pyproject.toml"
39+ github-token : ${{ secrets.GITHUB_TOKEN }}
40+
41+ - name : Add .local/bin to Windows PATH
42+ if : runner.os == 'Windows'
43+ shell : bash
44+ run : echo "$USERPROFILE/.local/bin" >> $GITHUB_PATH
45+
46+ - name : Install tox
47+ run : uv tool install --python-preference only-managed --python 3.14 tox --with tox-uv --with tox-gh
48+
49+ - name : Install Python
50+ if : matrix.python-version != '3.14'
51+ run : uv python install --python-preference only-managed ${{ matrix.env }}
52+
53+ - name : Setup test suite
54+ run : tox run -vv --notest --skip-missing-interpreters false
55+ env :
56+ TOX_GH_MAJOR_MINOR : ${{ matrix.env }}
57+
58+ - name : Run test suite
59+ run : tox run --skip-pkg-install
60+ env :
61+ TOX_GH_MAJOR_MINOR : ${{ matrix.env }}
You can’t perform that action at this time.
0 commit comments