Skip to content

Commit

Permalink
Migrate pydantic tests to uv (#501)
Browse files Browse the repository at this point in the history
Migrate third_party workflow pydantic tests to uv
  • Loading branch information
brianschubert authored Nov 11, 2024
1 parent 67c16e1 commit e391124
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/third_party.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,18 @@ jobs:
uses: actions/checkout@v4
with:
path: typing-extensions-latest
- name: Setup pdm for pydantic tests
uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python-version }}
allow-python-prereleases: true
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Add local version of typing_extensions as a dependency
run: pdm add ./typing-extensions-latest
run: uv add --editable ./typing-extensions-latest
- name: Install pydantic test dependencies
run: pdm install -G testing -G email
run: uv sync --group testing --group dev
- name: List installed dependencies
run: pdm list -vv # pdm equivalent to `pip list`
run: uv pip list
- name: Run pydantic tests
run: pdm run pytest
run: uv run pytest

typing_inspect:
name: typing_inspect tests
Expand Down

0 comments on commit e391124

Please sign in to comment.