Skip to content

Commit f771cb1

Browse files
committed
Update cattrs tests
Updates the CI configuration for cattrs to use uv.
1 parent e238ea6 commit f771cb1

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

.github/workflows/third_party.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -291,19 +291,16 @@ jobs:
291291
with:
292292
path: typing-extensions-latest
293293
persist-credentials: false
294-
- name: Install pdm for cattrs
295-
run: pip install pdm
296-
- name: Add latest typing-extensions as a dependency
297-
run: |
298-
cd cattrs
299-
pdm remove typing-extensions
300-
pdm add --dev ../typing-extensions-latest
301-
- name: Install cattrs test dependencies
302-
run: cd cattrs; pdm install --dev -G :all
303-
- name: List all installed dependencies
304-
run: cd cattrs; pdm list -vv
305-
- name: Run cattrs tests
306-
run: cd cattrs; pdm run pytest tests
294+
- name: Install uv
295+
run: curl -LsSf https://astral.sh/uv/install.sh | sh
296+
- name: Add local version of typing_extensions as a dependency
297+
run: cd cattrs; uv add --editable ../typing-extensions-latest
298+
- name: Install test dependencies
299+
run: cd cattrs; uv sync --group test --all-extras
300+
- name: List installed dependencies
301+
run: cd cattrs; uv pip list
302+
- name: Run tests
303+
run: cd cattrs; uv run pytest tests
307304

308305
sqlalchemy:
309306
name: sqlalchemy tests

0 commit comments

Comments
 (0)