Skip to content

Commit 1457e5f

Browse files
committed
CI: Use uv backend for nox
Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent 16cfff0 commit 1457e5f

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
@@ -73,7 +73,7 @@ jobs:
7373
- name: Create nox venv
7474
env:
7575
NOX_SESSION: ${{ matrix.nox-session }}
76-
run: nox --install-only -e "$NOX_SESSION"
76+
run: nox -db uv --install-only -e "$NOX_SESSION"
7777

7878
- name: Print pip freeze for nox venv (debug)
7979
env:
@@ -89,9 +89,9 @@ jobs:
8989
NOX_SESSION: ${{ matrix.nox-session }}
9090
run: |
9191
if [ "$NOX_SESSION" = "pytest_min" ]; then
92-
nox -R -e "$NOX_SESSION" -- --ff -o cache_dir=.pytest_cache
92+
nox -db uv -R -e "$NOX_SESSION" -- --ff -o cache_dir=.pytest_cache
9393
else
94-
nox -R -e "$NOX_SESSION"
94+
nox -db uv -R -e "$NOX_SESSION"
9595
fi
9696
timeout-minutes: 10
9797

0 commit comments

Comments
 (0)