Skip to content

Commit 626cccd

Browse files
authored
Use uv on GitHub Actions (#1109)
Gives a nice speed boost.
1 parent c87df5a commit 626cccd

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,14 @@ jobs:
5252
with:
5353
python-version: ${{ matrix.python-version }}
5454
allow-prereleases: true
55-
cache: pip
56-
cache-dependency-path: 'requirements/*.txt'
55+
56+
- name: Install uv
57+
uses: astral-sh/setup-uv@v1
58+
with:
59+
enable-cache: true
5760

5861
- name: Install dependencies
59-
run: |
60-
python -m pip install --upgrade pip setuptools wheel
61-
python -m pip install --upgrade 'tox>=4.0.0rc3'
62+
run: uv pip install --system tox tox-uv
6263

6364
- name: Install percona-toolkit
6465
run: |
@@ -94,8 +95,11 @@ jobs:
9495
with:
9596
python-version: '3.12'
9697

98+
- name: Install uv
99+
uses: astral-sh/setup-uv@v1
100+
97101
- name: Install dependencies
98-
run: python -m pip install --upgrade coverage[toml]
102+
run: uv pip install --system coverage[toml]
99103

100104
- name: Download data
101105
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)