Skip to content

Commit 80e4c1e

Browse files
chore: update actions to use poetry
1 parent 379f127 commit 80e4c1e

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

.github/workflows/tests.yaml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,25 @@ jobs:
1616
strategy:
1717
matrix:
1818
os: [ubuntu-latest]
19-
python-version: ['3.11', '3.12']
19+
python-version: ['3.11', '3.12', '3.13']
2020
fail-fast: false
2121

2222
steps:
23-
- uses: actions/checkout@v3
24-
- name: Setup Python ${{ matrix.python-version }}
25-
uses: actions/setup-python@v4
23+
- uses: actions/checkout@v4
24+
- name: Set up Python
25+
uses: actions/setup-python@v5
2626
with:
2727
python-version: ${{ matrix.python-version }}
28-
cache: 'pip'
29-
- name: Install
30-
run: |
31-
python -m pip install --upgrade pip
32-
python -m pip install hatch
28+
- name: Set up poetry
29+
uses: abatilo/actions-poetry@v2
30+
- name: Install dependencies
31+
run: poetry install --with dev
3332
- name: Run linters
34-
run: hatch run lint:all
33+
run: poetry run ruff check src tests
3534
- name: Run tests
36-
run: hatch run test-cov
35+
run: poetry run pytest --cov
3736
- name: "Upload coverage to Codecov"
38-
if: matrix.python-version == 3.12 # Only upload coverage once per run
37+
if: matrix.python-version == 3.13 # Only upload coverage once per run
3938
uses: codecov/codecov-action@v3
4039
with:
4140
fail_ci_if_error: false

.github/workflows/update_readme.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
- name: Set up Python
17-
uses: actions/setup-python@v4
17+
uses: actions/setup-python@v5
1818
with:
1919
python-version: "3.12"
20-
- name: Install package
21-
run: |
22-
python -m pip install --upgrade pip
23-
pip install -e .
20+
- name: Set up poetry
21+
uses: abatilo/actions-poetry@v2
22+
- name: Install dependencies
23+
run: poetry install --with dev
2424
- name: Generate new README
2525
run: generate-readme
2626
- name: Commit new README

0 commit comments

Comments
 (0)