Skip to content

Commit d2bd3f1

Browse files
committed
Use uv in GHA
1 parent b2d4dc7 commit d2bd3f1

1 file changed

Lines changed: 4 additions & 14 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,13 @@ jobs:
2929
- uses: actions/checkout@v5
3030
- uses: actions/setup-python@v6
3131
with:
32-
python-version: "3.14"
32+
python-version-file: pyproject.toml
3333
- name: Generate the cache suffix
3434
id: cache-suffix
3535
run: |
3636
echo cache-suffix=${TOXENV//,/-} >> $GITHUB_OUTPUT
37-
- uses: actions/cache@v4
37+
- uses: astral-sh/setup-uv@v7
3838
with:
39-
path: |
40-
~/.cache/pip
41-
~/.cache/pre-commit
42-
.mypy_cache
43-
key: ${{ runner.os }}-pip-${{ steps.cache-suffix.outputs.cache-suffix }}
44-
- name: Install dependencies
45-
run: |
46-
set -xe
47-
python -VV
48-
python -m pip install --upgrade pip setuptools wheel
49-
python -m pip install --upgrade virtualenv tox
39+
cache-suffix: ${{ steps.cache-suffix.outputs.cache-suffix }}
5040
- name: tox
51-
run: python -m tox
41+
run: uvx tox

0 commit comments

Comments
 (0)