Skip to content

Commit 5c50e33

Browse files
committed
Switch from pip to uv in main CI
1 parent 12aae3a commit 5c50e33

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,20 @@ jobs:
3030
python-version: ${{ matrix.python-version }}
3131

3232
- uses: actions/cache@v4
33+
env:
34+
UV_CACHE_DIR: ~/.cache/uv
3335
with:
34-
path: ~/.cache/pip
35-
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
36+
path: "${{ env.UV_CACHE_DIR }}"
37+
key: ${{ runner.os }}-uv-${{ hashFiles('pyproject.toml') }}
3638
restore-keys: |
37-
${{ runner.os }}-pip-
39+
${{ runner.os }}-uv-
3840
3941
- name: "Install dependencies"
42+
env:
43+
UV_CACHE_DIR: ~/.cache/uv
4044
run: |
41-
python -m pip install --upgrade pip setuptools wheel
42-
# We use '--ignore-installed' to avoid GitHub's cache which can cause
43-
# issues - we have seen packages from this cache be cause trouble with
44-
# pip-extra-reqs.
45-
python -m pip install --ignore-installed --upgrade --editable .[dev]
45+
python -m pip install --upgrade uv
46+
python -m uv pip install --upgrade --editable .[dev]
4647
4748
- name: "Lint"
4849
run: |

0 commit comments

Comments
 (0)