Skip to content

Commit e391124

Browse files
Migrate pydantic tests to uv (python#501)
Migrate third_party workflow pydantic tests to uv
1 parent 67c16e1 commit e391124

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/third_party.yml

+8-9
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,18 @@ jobs:
6060
uses: actions/checkout@v4
6161
with:
6262
path: typing-extensions-latest
63-
- name: Setup pdm for pydantic tests
64-
uses: pdm-project/setup-pdm@v4
65-
with:
66-
python-version: ${{ matrix.python-version }}
67-
allow-python-prereleases: true
63+
- name: Install uv
64+
uses: astral-sh/setup-uv@v3
65+
- name: Set up Python ${{ matrix.python-version }}
66+
run: uv python install ${{ matrix.python-version }}
6867
- name: Add local version of typing_extensions as a dependency
69-
run: pdm add ./typing-extensions-latest
68+
run: uv add --editable ./typing-extensions-latest
7069
- name: Install pydantic test dependencies
71-
run: pdm install -G testing -G email
70+
run: uv sync --group testing --group dev
7271
- name: List installed dependencies
73-
run: pdm list -vv # pdm equivalent to `pip list`
72+
run: uv pip list
7473
- name: Run pydantic tests
75-
run: pdm run pytest
74+
run: uv run pytest
7675

7776
typing_inspect:
7877
name: typing_inspect tests

0 commit comments

Comments
 (0)