File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,17 +20,14 @@ jobs:
2020
2121 steps :
2222 - uses : actions/checkout@v4
23- - name : Set up Python ${{ matrix.python-version }}
24- uses : actions /setup-python@v3
23+ - name : Install uv
24+ uses : astral-sh /setup-uv@v6
2525 with :
26- python-version : ${{ matrix.python-version }}
27- - name : Install poetry
28- run : |
29- python -m pip install --upgrade poetry
30- python -m poetry config virtualenvs.in-project true
26+ enable-cache : true
27+ - name : Set up Python ${{ matrix.python-version }}
28+ run : uv python install ${{ matrix.python-version }}
3129 - name : Install dependencies
32- run : |
33- python -m poetry sync --all-extras
30+ run : uv sync --all-extras
3431 - name : Setup Node.js environment
3532 uses : actions/setup-node@v4.3.0
3633 # with:
5350 # flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
5451 - name : Test with pytest
5552 run : |
56- python -m poetry run pytest tests
53+ uv run pytest tests
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ def greet(name: str) -> str:
8888## Development
8989
9090- Requires Python 3.11+.
91- - Requires ` poetry ` for dev dependencies.
91+ - Requires ` uv ` for dev dependencies.
9292
9393Generate latest types in one go:
9494``` sh
You can’t perform that action at this time.
0 commit comments