Skip to content

Commit 48a026e

Browse files
committed
Use poetry for test ci
1 parent 93242da commit 48a026e

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

.github/workflows/test.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,32 @@ jobs:
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727
allow-prereleases: true
28-
- uses: astral-sh/setup-uv@v6
28+
- name: Install and configure Poetry
29+
run: |
30+
pip install -U pip poetry
31+
poetry env use ${{ matrix.python-version }}
2932
- name: Install dependencies
30-
run: uv sync --all-extras --all-groups
33+
run: poetry install --all-extras --all-groups
3134
- name: Test
32-
run: uv run python tests/runtests.py
35+
run: poetry run python tests/runtests.py
3336
- name: Build
34-
run: uv build
37+
run: poetry build
3538

3639
test_py37:
3740
runs-on: ubuntu-latest
3841
container: python:3.7-slim
3942
steps:
4043
- uses: actions/checkout@v5
4144
- uses: actions/setup-python@v6
42-
- uses: astral-sh/setup-uv@v6
45+
- name: Install and configure Poetry
46+
run: |
47+
pip install -U pip poetry
48+
poetry env use 3.7
4349
- name: Install dependencies
44-
run: uv sync --all-extras --all-groups --python=python3.7
50+
run: poetry install --all-extras --all-groups
4551
- name: Test
4652
run: |
47-
uv run python tests/runtests.py
48-
uv run python -V
53+
poetry run python tests/runtests.py
54+
poetry run python -V
4955
- name: Build
50-
run: uv build --python=python3.7
56+
run: poetry build

0 commit comments

Comments
 (0)