Skip to content

Commit 7d5aa0b

Browse files
committed
Update GitHub workflow to use uv instead of poetry
1 parent 8d6d08e commit 7d5aa0b

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

.github/workflows/tests.yml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,36 @@ jobs:
77
linting:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
11-
- name: Install virtualenv from poetry
12-
uses: 20c/workflows/poetry@v1
10+
- uses: actions/checkout@v4
11+
- name: Install uv
12+
uses: astral-sh/setup-uv@v6
13+
- name: install project
14+
run: uv sync --all-extras --dev
1315
- name: Run linters
1416
run: |
15-
poetry run pre-commit run --all-files
17+
uv run pre-commit run --all-files
1618
1719
test:
1820
needs: linting
1921
strategy:
2022
fail-fast: false
2123
matrix:
2224
os: [ "ubuntu-latest", "macos-latest" ]
23-
python-version: [ "3.8", "3.9", "3.10", "3.11" ]
25+
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
2426
runs-on: ${{ matrix.os }}
2527
steps:
2628
- name: Check out repository
27-
uses: actions/checkout@v2
28-
- name: Install virtualenv from poetry
29-
uses: 20c/workflows/poetry@v1
30-
with:
31-
python-version: ${{ matrix.python-version }}
29+
uses: actions/checkout@v4
30+
- name: Install uv
31+
uses: astral-sh/setup-uv@v6
32+
- name: Install python
33+
run: uv python install ${{ matrix.python-version }}
34+
- name: install tox
35+
run: uv sync --all-extras --dev
3236
- name: Run tests
33-
run: poetry run tox
37+
run: uv run tox
3438
- name: Upload coverage
35-
uses: codecov/codecov-action@v3
39+
uses: codecov/codecov-action@v5
3640
with:
3741
fail_ci_if_error: true
42+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)