@@ -13,34 +13,33 @@ jobs:
1313 steps :
1414 - uses : actions/checkout@v4
1515
16- - name : Install poetry
17- run : pipx install "poetry==1.8.4"
16+ - name : Install uv
17+ uses : astral-sh/setup-uv@v3
18+ with :
19+ enable-cache : true
1820
1921 - name : Set up Python ${{ matrix.python-version }}
20- uses : actions/setup-python@v5
21- with :
22- python-version : ${{ matrix.python-version }}
23- cache : ' poetry'
22+ run : uv python install ${{ matrix.python-version }}
2423
2524 - name : Install dependencies
26- run : poetry install --with=docs,test,coverage,lint
25+ run : uv sync --all-extras --dev
2726
2827 - name : Print python versions
2928 run : |
3029 python -V
31- poetry run python -V
30+ uv run python -V
3231
3332 - name : Lint with ruff check
34- run : poetry run ruff check .
33+ run : uv run ruff check .
3534
3635 - name : Format with ruff format
37- run : poetry run ruff format . --check
36+ run : uv run ruff format . --check
3837
3938 - name : Lint with mypy
40- run : poetry run mypy .
39+ run : uv run mypy .
4140
4241 - name : Test with pytest
43- run : poetry run py.test --cov=./ --cov-report=xml
42+ run : uv run py.test --cov=./ --cov-report=xml
4443
4544 - uses : codecov/codecov-action@v5
4645 with :
@@ -58,18 +57,20 @@ jobs:
5857 steps :
5958 - uses : actions/checkout@v4
6059
61- - name : Install poetry
62- run : pipx install "poetry==1.8.4"
60+ - name : Install uv
61+ uses : astral-sh/setup-uv@v3
62+ with :
63+ enable-cache : true
6364
6465 - name : Set up Python ${{ matrix.python-version }}
65- uses : actions/setup- python@v5
66- with :
67- python-version : ${{ matrix.python-version }}
68- cache : ' poetry '
66+ run : uv python install ${{ matrix.python-version }}
67+
68+ - name : Install dependencies
69+ run : uv sync --all-extras --dev
6970
7071 - name : Build package
7172 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
72- run : poetry build
73+ run : uv build
7374
7475 - name : Publish package
7576 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
0 commit comments