Skip to content

Commit b350319

Browse files
committed
CI: Use uv backend for nox
Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent 61a4e47 commit b350319

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ jobs:
5757

5858
- name: Install required Python packages
5959
run: |
60-
python -m pip install --upgrade pip
61-
python -m pip install -e .[dev-noxfile]
60+
python -m pip install --upgrade pip uv
61+
python -m uv pip install -e .[dev-noxfile]
6262
pip freeze
6363
6464
# Restore pytest cache only for pytest_min session to use the cache
@@ -75,7 +75,7 @@ jobs:
7575
- name: Create nox venv
7676
env:
7777
NOX_SESSION: ${{ matrix.nox-session }}
78-
run: nox --install-only -e "$NOX_SESSION"
78+
run: nox -db uv --install-only -e "$NOX_SESSION"
7979

8080
- name: Print pip freeze for nox venv (debug)
8181
env:
@@ -91,9 +91,9 @@ jobs:
9191
NOX_SESSION: ${{ matrix.nox-session }}
9292
run: |
9393
if [ "$NOX_SESSION" = "pytest_min" ]; then
94-
nox -R -e "$NOX_SESSION" -- --ff -o cache_dir=.pytest_cache
94+
nox -db uv -R -e "$NOX_SESSION" -- --ff -o cache_dir=.pytest_cache
9595
else
96-
nox -R -e "$NOX_SESSION"
96+
nox -db uv -R -e "$NOX_SESSION"
9797
fi
9898
timeout-minutes: 10
9999

0 commit comments

Comments
 (0)