Skip to content

Commit 61744b2

Browse files
authored
Use uv on GitHub Actions (#645)
Gives a nice speed boost.
1 parent 7ecb413 commit 61744b2

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/main.yml

+10-6
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,14 @@ jobs:
3131
with:
3232
python-version: ${{ matrix.python-version }}
3333
allow-prereleases: true
34-
cache: pip
35-
cache-dependency-path: 'requirements/*.txt'
34+
35+
- name: Install uv
36+
uses: astral-sh/setup-uv@v1
37+
with:
38+
enable-cache: true
3639

3740
- name: Install dependencies
38-
run: |
39-
python -m pip install --upgrade pip setuptools wheel
40-
python -m pip install --upgrade 'tox>=4.0.0rc3'
41+
run: uv pip install --system tox tox-uv
4142

4243
- name: Run tox targets for ${{ matrix.python-version }}
4344
run: tox run -f py$(echo ${{ matrix.python-version }} | tr -d .)
@@ -61,8 +62,11 @@ jobs:
6162
with:
6263
python-version: '3.12'
6364

65+
- name: Install uv
66+
uses: astral-sh/setup-uv@v1
67+
6468
- name: Install dependencies
65-
run: python -m pip install --upgrade coverage[toml]
69+
run: uv pip install --system coverage[toml]
6670

6771
- name: Download data
6872
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)