Skip to content

Commit 7b214d2

Browse files
committed
uv project environment
1 parent b0f3e62 commit 7b214d2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,19 +238,21 @@ jobs:
238238

239239
- name: set up venv
240240
run: |
241-
uv venv --python 3.13 --project pydantic ./.venv
242-
uv sync --extra timezone
241+
uv sync --python 3.13 --project pydantic --extra timezone
243242
uv pip install maturin
244243
uv run bash -c 'cd ../pydantic-core && make build-dev'
244+
env:
245+
UV_PROJECT_ENVIRONMENT: .venv
245246

246247
- run: uv --version && uv pip list
247-
working-directory: pydantic
248-
# Run pytest with lax xfail because we often add tests to pydantic
248+
249+
# Run pytest with lax xfail because we often add tests to pydantic
249250
# which xfail on a pending release of pydantic-core
250251
- run: uv run pytest --override-ini=xfail_strict=False
251252
working-directory: pydantic
252253
env:
253254
PYDANTIC_PRIVATE_ALLOW_UNHANDLED_SCHEMA_TYPES: 1
255+
UV_PROJECT_ENVIRONMENT: ../.venv
254256

255257
lint:
256258
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)