Skip to content

Commit 25ef585

Browse files
committed
chore: migrate to poetry
1 parent 42a87e9 commit 25ef585

File tree

5 files changed

+295
-40
lines changed

5 files changed

+295
-40
lines changed

.github/workflows/release-please.yml

+12-10
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,24 @@ jobs:
2121
needs: release-please
2222
if: ${{ needs.release-please.outputs.release_created }}
2323
steps:
24-
- uses: actions/checkout@v2
25-
26-
- name: Install uv
27-
uses: astral-sh/setup-uv@v3
28-
29-
- name: "Set up Python"
24+
- uses: actions/checkout@v4
25+
- name: Set up python
26+
id: setup-python
3027
uses: actions/setup-python@v5
3128
with:
32-
python-version-file: "pyproject.toml"
29+
python-version: "3.12"
30+
31+
- name: Install Poetry
32+
uses: snok/install-poetry@v1
33+
with:
34+
version: 2.0.0
3335

34-
- name: Install the project
35-
run: uv sync --all-extras --dev
36+
- name: Install dependencies
37+
run: poetry install --with dev
3638

3739
- name: Build source and wheel distribution
3840
run: |
39-
uv build
41+
poetry build
4042
4143
- name: Upload artifacts
4244
uses: actions/upload-artifact@v3

.github/workflows/test.yml

+40-19
Original file line numberDiff line numberDiff line change
@@ -12,43 +12,64 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
15-
16-
- name: Install uv and install project
17-
uses: astral-sh/setup-uv@v5
15+
- name: Set up python
16+
id: setup-python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.12"
1820

19-
- name: Install the project
20-
run: uv sync --all-extras --dev
21+
- name: Install Poetry
22+
uses: snok/install-poetry@v1
23+
with:
24+
version: 2.0.0
25+
26+
- name: Install dependencies
27+
run: poetry install --with dev
2128

2229
- name: Check formatting
23-
run: uv run ruff format --check
30+
run: poetry run ruff format --check
2431

2532
linting:
2633
runs-on: ubuntu-latest
2734
steps:
2835
- uses: actions/checkout@v4
29-
30-
- name: Install uv and install project
31-
uses: astral-sh/setup-uv@v5
36+
- name: Set up python
37+
id: setup-python
38+
uses: actions/setup-python@v5
39+
with:
40+
python-version: "3.12"
41+
42+
- name: Install Poetry
43+
uses: snok/install-poetry@v1
44+
with:
45+
version: 2.0.0
3246

33-
- name: Install the project
34-
run: uv sync --all-extras --dev
47+
- name: Install dependencies
48+
run: poetry install --with dev
3549

3650
- name: Check code
37-
run: uv run ruff check
51+
run: poetry run ruff check
3852

3953
testing:
4054
runs-on: ubuntu-latest
4155
steps:
4256
- uses: actions/checkout@v4
43-
44-
- name: Install uv and install project
45-
uses: astral-sh/setup-uv@v5
57+
- name: Set up python
58+
id: setup-python
59+
uses: actions/setup-python@v5
60+
with:
61+
python-version: "3.12"
62+
63+
- name: Install Poetry
64+
uses: snok/install-poetry@v1
65+
with:
66+
version: 2.0.0
4667

47-
- name: Install the project
48-
run: uv sync --all-extras --dev
68+
- name: Install dependencies
69+
run: poetry install --with dev
4970

5071
- name: Run pytest
51-
run: uv run coverage run -m pytest tests/tests.py
72+
run: poetry run coverage run -m pytest tests/tests.py
5273

5374
- name: Run Coverage
54-
run: uv run coverage report -m
75+
run: poetry run coverage report -m

0 commit comments

Comments
 (0)