@@ -13,34 +13,33 @@ jobs:
13
13
steps :
14
14
- uses : actions/checkout@v4
15
15
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
18
20
19
21
- 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 }}
24
23
25
24
- name : Install dependencies
26
- run : poetry install --with=docs,test,coverage,lint
25
+ run : uv sync --all-extras --dev
27
26
28
27
- name : Print python versions
29
28
run : |
30
29
python -V
31
- poetry run python -V
30
+ uv run python -V
32
31
33
32
- name : Lint with ruff check
34
- run : poetry run ruff check .
33
+ run : uv run ruff check .
35
34
36
35
- name : Format with ruff format
37
- run : poetry run ruff format . --check
36
+ run : uv run ruff format . --check
38
37
39
38
- name : Lint with mypy
40
- run : poetry run mypy .
39
+ run : uv run mypy .
41
40
42
41
- name : Test with pytest
43
- run : poetry run py.test --cov=./ --cov-report=xml
42
+ run : uv run py.test --cov=./ --cov-report=xml
44
43
45
44
- uses : codecov/codecov-action@v5
46
45
with :
@@ -58,18 +57,20 @@ jobs:
58
57
steps :
59
58
- uses : actions/checkout@v4
60
59
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
63
64
64
65
- 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
69
70
70
71
- name : Build package
71
72
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
72
- run : poetry build
73
+ run : uv build
73
74
74
75
- name : Publish package
75
76
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
0 commit comments