Skip to content

Commit d239969

Browse files
committed
update github actions
1 parent d804a2d commit d239969

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

.github/workflows/build-python-wheels.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
fetch-depth: 0
2424

2525
- name: Install Python
26-
uses: actions/setup-python@v4
26+
uses: actions/setup-python@v5
2727
with:
2828
python-version: '3.9'
2929

@@ -48,7 +48,7 @@ jobs:
4848
fetch-depth: 0
4949

5050
- name: Install Python
51-
uses: actions/setup-python@v4
51+
uses: actions/setup-python@v5
5252
with:
5353
python-version: '3.9'
5454

.github/workflows/docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
fetch-depth: 0
2121

2222
- name: Set up Python
23-
uses: actions/setup-python@v4
23+
uses: actions/setup-python@v5
2424
with:
2525
python-version: 3.9
2626

.github/workflows/matlab-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- uses: actions/checkout@v4
2828

2929
- name: Set up python 3.9
30-
uses: actions/setup-python@v4
30+
uses: actions/setup-python@v5
3131
with:
3232
python-version: '3.9'
3333

.github/workflows/python-tests.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- uses: actions/checkout@v4
2828

2929
- name: Set up Python ${{ matrix.python-version }}
30-
uses: actions/setup-python@v4
30+
uses: actions/setup-python@v5
3131
with:
3232
python-version: ${{ matrix.python-version }}
3333

@@ -39,8 +39,8 @@ jobs:
3939
run: |
4040
# stop the build if there are Python syntax errors or undefined names
4141
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
42-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
43-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
42+
# exit-zero treats all errors as warnings. Options compatible with the 'black' code formatter
43+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88 --extend-ignore=E203,E704 --extend-select=W504 --per-file-ignores='*/__init__.py:F401,F403' --statistics
4444
4545
- name: Test with pytest and coverage
4646
working-directory: pyat

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Home="https://atcollab.github.io/at/"
4040
[project.optional-dependencies]
4141
mpi = ["mpi4py"]
4242
plot = ["matplotlib"]
43-
dev = ["pytest >= 2.9", "pytest-lazy-fixture", "pytest-cov", "flake8"]
43+
dev = ["pytest >= 2.9, < 8.0", "pytest-lazy-fixture", "pytest-cov", "flake8"]
4444
doc = ["Sphinx ~= 7.2", "myst-parser", "myst-nb", "pydata-sphinx-theme ~= 0.14",
4545
"sphinx_design", "sphinx-copybutton"]
4646

0 commit comments

Comments
 (0)