Skip to content

Commit b0fd764

Browse files
committed
fix GHA
1 parent 01653d2 commit b0fd764

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/test_and_release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.x']
17+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.x"]
1818

1919
steps:
2020
- uses: actions/checkout@v3
@@ -29,15 +29,16 @@ jobs:
2929
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3030
- name: Lint with flake8
3131
run: |
32+
# ignore F824 ("`global X` is unused: name is never assigned in scope") because I disagree with it
3233
# stop the build if there are Python syntax errors or undefined names
33-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
34+
flake8 . --count --select=E9,F63,F7,F82 --ignore=F824 --show-source --statistics
3435
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
35-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
36+
flake8 . --ignore=F824 --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3637
- name: Build
3738
run: |
3839
python setup.py sdist
3940
- name: Store distribution packages
40-
uses: actions/upload-artifact@v3
41+
uses: actions/upload-artifact@v4
4142
with:
4243
name: dist
4344
path: dist/
@@ -48,7 +49,7 @@ jobs:
4849
needs: build
4950
strategy:
5051
matrix:
51-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.x']
52+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.x"]
5253

5354
steps:
5455
- uses: actions/checkout@v3
@@ -87,7 +88,7 @@ jobs:
8788
id-token: write
8889
steps:
8990
- name: Download distribution packages
90-
uses: actions/download-artifact@v3
91+
uses: actions/download-artifact@v4
9192
with:
9293
name: dist
9394
path: dist/

0 commit comments

Comments
 (0)