Skip to content

Commit 3b11e5c

Browse files
committed
CI: Use uv backend for nox
Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent 036746b commit 3b11e5c

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

7777
- name: Print pip freeze for nox venv (debug)
7878
env:
@@ -97,9 +97,9 @@ jobs:
9797
NOX_SESSION: ${{ matrix.nox-session }}
9898
run: |
9999
if [ "$NOX_SESSION" = "pytest_min" ]; then
100-
nox -R -e "$NOX_SESSION" -- --ff -o cache_dir=.pytest_cache
100+
nox -db uv -R -e "$NOX_SESSION" -- --ff -o cache_dir=.pytest_cache
101101
else
102-
nox -R -e "$NOX_SESSION"
102+
nox -db uv -R -e "$NOX_SESSION"
103103
fi
104104
timeout-minutes: 10
105105

0 commit comments

Comments
 (0)