Skip to content

Commit 596ef52

Browse files
committed
Update workflows
Test on latest Python versions Update actions versions Mypy no longer needs to be tested in multiple Python versions since 3.9 was dropped
1 parent ecd1f98 commit 596ef52

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

.github/workflows/python-package.yml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,36 +20,30 @@ jobs:
2020
pre-commit:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v6
2424
- uses: pre-commit/[email protected]
2525

2626
mypy:
2727
runs-on: ubuntu-latest
28-
strategy:
29-
matrix:
30-
python-version: ["3.10", "3.13"]
3128
steps:
32-
- uses: actions/checkout@v4
33-
- uses: actions/setup-python@v5
34-
name: Setup Python ${{ matrix.python-version }}
35-
with:
36-
python-version: ${{ matrix.python-version }}
29+
- uses: actions/checkout@v6
30+
- uses: actions/setup-python@v6
3731
- name: Install package
3832
run: pip install -e ".[test]"
3933
- name: Mypy
4034
uses: liskin/gh-problem-matcher-wrap@v3
4135
with:
4236
linters: mypy
43-
run: mypy --show-column-numbers --python-version ${{ matrix.python-version }}
37+
run: mypy --show-column-numbers
4438

4539
test:
4640
runs-on: ubuntu-latest
4741
strategy:
4842
matrix:
49-
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14-dev"]
43+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15-dev"]
5044
steps:
51-
- uses: actions/checkout@v4
52-
- uses: actions/setup-python@v5
45+
- uses: actions/checkout@v6
46+
- uses: actions/setup-python@v6
5347
name: Setup Python ${{ matrix.python-version }}
5448
with:
5549
python-version: ${{ matrix.python-version }}
@@ -58,19 +52,19 @@ jobs:
5852
- name: Run tests
5953
run: pytest --cov-report=xml
6054
- name: Upload coverage
61-
uses: codecov/codecov-action@v4
55+
uses: codecov/codecov-action@v5
6256
with:
6357
token: ${{ secrets.CODECOV_TOKEN }}
6458

6559
build-dist:
6660
runs-on: ubuntu-latest
6761
steps:
68-
- uses: actions/checkout@v4
62+
- uses: actions/checkout@v6
6963
- name: Install build
7064
run: pip install build
7165
- name: Build package
7266
run: python -m build
73-
- uses: actions/upload-artifact@v4
67+
- uses: actions/upload-artifact@v5
7468
with:
7569
name: python-dist
7670
path: dist/*
@@ -88,7 +82,7 @@ jobs:
8882
permissions:
8983
id-token: write
9084
steps:
91-
- uses: actions/download-artifact@v4
85+
- uses: actions/download-artifact@v6
9286
with:
9387
name: python-dist
9488
path: dist/
@@ -102,7 +96,7 @@ jobs:
10296
contents: write
10397
steps:
10498
- name: Checkout code
105-
uses: actions/checkout@v4
99+
uses: actions/checkout@v6
106100
- name: Generate body
107101
run: scripts/get_release_description.py | tee release_body.md
108102
- name: Create Release

0 commit comments

Comments
 (0)