Skip to content

Commit 368bbcd

Browse files
ci: Use uv in CI
1 parent d5b0515 commit 368bbcd

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ jobs:
7474
with:
7575
python-version: ${{ matrix.python-version }}
7676
architecture: x64
77-
cache: 'pip'
78-
cache-dependency-path: 'poetry.lock'
7977

8078
- name: Upgrade pip
8179
env:
@@ -88,7 +86,7 @@ jobs:
8886
env:
8987
PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt
9088
run: |
91-
pipx install nox
89+
pipx install 'nox[uv]'
9290
pipx inject nox nox-poetry
9391
nox --version
9492
@@ -138,8 +136,6 @@ jobs:
138136
with:
139137
python-version: ${{ env.NOXPYTHON }}
140138
architecture: x64
141-
cache: 'pip'
142-
cache-dependency-path: 'poetry.lock'
143139

144140
- name: Upgrade pip
145141
env:
@@ -152,7 +148,7 @@ jobs:
152148
env:
153149
PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt
154150
run: |
155-
pipx install nox
151+
pipx install 'nox[uv]'
156152
pipx inject nox nox-poetry
157153
nox --version
158154
@@ -181,8 +177,6 @@ jobs:
181177
- uses: actions/setup-python@v5
182178
with:
183179
python-version: '3.12'
184-
cache: 'pip'
185-
cache-dependency-path: 'poetry.lock'
186180

187181
- name: Upgrade pip
188182
env:
@@ -200,7 +194,7 @@ jobs:
200194
env:
201195
PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt
202196
run: |
203-
pipx install nox
197+
pipx install 'nox[uv]'
204198
pipx inject nox nox-poetry
205199
nox --version
206200

noxfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
raise SystemExit(dedent(message)) from None
2222

2323
nox.needs_version = ">=2024.4.15"
24+
nox.options.default_venv_backend = "uv|virtualenv"
2425

2526
RUFF_OVERRIDES = """\
2627
extend = "./pyproject.toml"

0 commit comments

Comments
 (0)