Skip to content

Commit e573ee8

Browse files
committed
fix integration tests, versioned builds
1 parent 11beaeb commit e573ee8

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
enable-cache: true
9494

9595
- name: install deps
96-
run: uv sync --python ${{ matrix.python-version }} --group testing
96+
run: uv sync --group testing
9797

9898
- run: uv pip install -e .
9999
env:
@@ -105,6 +105,9 @@ jobs:
105105
env:
106106
HYPOTHESIS_PROFILE: slow
107107

108+
env:
109+
UV_PYTHON: ${{ matrix.python-version }}
110+
108111
test-os:
109112
name: test on ${{ matrix.os }}
110113

@@ -205,13 +208,16 @@ jobs:
205208
uses: Swatinem/rust-cache@v2
206209

207210
- name: install deps
208-
run: uv sync --python ${{ matrix.python-version }} --group testing
211+
run: uv sync --group testing
209212

210213
- run: make build-dev
211214

212215
- run: uv pip freeze
213216
- run: uv run pytest
214217

218+
env:
219+
UV_PYTHON: ${{ matrix.python-version }}
220+
215221
test-pydantic-integration:
216222
runs-on: ubuntu-latest
217223
continue-on-error: true
@@ -237,20 +243,15 @@ jobs:
237243
with:
238244
enable-cache: true
239245

240-
- name: create venv
241-
run: uv venv --python 3.13
242-
243246
- name: set up venv
244247
run: |
248+
uv venv
245249
uv pip install -r pydantic/pyproject.toml --extra timezone
246-
uv pip install maturin
247-
env:
248-
UV_PROJECT_ENVIRONMENT: .venv
250+
uv pip install maturin pip
249251
250252
- name: install pydantic-core
251-
run: |
252-
pwd
253-
make build-dev
253+
run: make build-dev
254+
working-directory: pydantic-core
254255

255256
- run: uv --version && uv pip list
256257

@@ -259,7 +260,9 @@ jobs:
259260
- run: uv run pytest --override-ini=xfail_strict=False pydantic/tests
260261
env:
261262
PYDANTIC_PRIVATE_ALLOW_UNHANDLED_SCHEMA_TYPES: 1
262-
UV_PROJECT_ENVIRONMENT: .venv
263+
264+
env:
265+
UV_PROJECT_ENVIRONMENT: ${{ github.workspace }}/.venv
263266

264267
lint:
265268
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)