Skip to content

Commit 232f59a

Browse files
authored
Merge pull request #7 from yaal-coop/uv
migrate to uv
2 parents 6b47ee9 + 9194b90 commit 232f59a

4 files changed

Lines changed: 737 additions & 791 deletions

File tree

.github/workflows/tests.yaml

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212

1313
jobs:
1414
tests:
15-
name: ${{ matrix.python }}
15+
name: py${{ matrix.python }} unit tests
1616
runs-on: ubuntu-latest
1717
strategy:
1818
fail-fast: false
@@ -23,17 +23,28 @@ jobs:
2323
- '3.11'
2424
steps:
2525
- uses: actions/checkout@v4
26-
- name: Install Poetry
27-
uses: snok/install-poetry@v1
28-
- uses: actions/setup-python@v5
26+
- name: Install uv
27+
uses: astral-sh/setup-uv@v3
2928
with:
30-
python-version: ${{ matrix.python }}
31-
cache: 'poetry'
32-
- name: Install dependencies and run tests
33-
run: |
34-
poetry --version
35-
poetry install
36-
poetry run pytest --showlocals --cov --cov-fail-under=100 --cov-report term:skip-covered
29+
enable-cache: true
30+
- name: Install Python ${{ matrix.python }}
31+
run: uv python install ${{ matrix.python }}
32+
- name: Run tests
33+
run: uv run pytest --showlocals
34+
35+
minversions:
36+
name: minimum dependency versions
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v4
40+
- name: Install uv
41+
uses: astral-sh/setup-uv@v3
42+
with:
43+
enable-cache: true
44+
- name: Install minimum dependencies
45+
run: uv sync --resolution=lowest-direct
46+
- name: Run tests
47+
run: uv run pytest --showlocals
3748

3849
style:
3950
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)