Skip to content

Commit 7a57e38

Browse files
David Fritzschedavidfritzsche
authored andcommitted
Declare support for pytest 8
Resolves #46
1 parent a67be31 commit 7a57e38

File tree

5 files changed

+22
-11
lines changed

5 files changed

+22
-11
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ name: Python package
55
on: [push]
66

77
jobs:
8-
test-py310:
8+
test-py37:
99
runs-on: ${{ matrix.os }}
1010
strategy:
1111
max-parallel: 4
1212
matrix:
1313
os: [ubuntu-latest, macos-latest, windows-latest]
14-
python-version: ["3.10"]
14+
python-version: ["3.7"]
1515

1616
steps:
1717
- uses: actions/checkout@v3
@@ -28,15 +28,15 @@ jobs:
2828
TOX_PARALLEL_NO_SPINNER: "1"
2929
run: |
3030
inv mkdir build/coverage-data
31-
inv tox -e "py310-*"
31+
inv tox -e "py37-*"
3232
33-
test-py37-py38-py39:
33+
test-py38-py39-py310:
3434
runs-on: ${{ matrix.os }}
3535
strategy:
3636
max-parallel: 8
3737
matrix:
3838
os: [ubuntu-latest, macos-latest, windows-latest]
39-
python-version: ["3.7", "3.8", "3.9"]
39+
python-version: ["3.8", "3.9", "3.10"]
4040

4141
steps:
4242
- uses: actions/checkout@v3

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ decorators are extracted from the ast.
137137

138138
# Changelog
139139

140+
## v0.1.2 (unreleased)
141+
142+
* Add support for pytest 8 (no actual change, but declare support)
143+
([#46][i46], [#47][p47])
144+
140145
## v0.1.1
141146

142147
* Compare just mypy error codes if given and no error message is given
@@ -204,6 +209,7 @@ decorators are extracted from the ast.
204209
[i30]: https://github.com/davidfritzsche/pytest-mypy-testing/issues/30
205210
[i35]: https://github.com/davidfritzsche/pytest-mypy-testing/issues/35
206211
[i36]: https://github.com/davidfritzsche/pytest-mypy-testing/issues/36
212+
[i46]: https://github.com/davidfritzsche/pytest-mypy-testing/issues/46
207213

208214
[p6]: https://github.com/davidfritzsche/pytest-mypy-testing/pull/6
209215
[p7]: https://github.com/davidfritzsche/pytest-mypy-testing/pull/7
@@ -222,3 +228,4 @@ decorators are extracted from the ast.
222228
[p41]: https://github.com/davidfritzsche/pytest-mypy-testing/pull/41
223229
[p42]: https://github.com/davidfritzsche/pytest-mypy-testing/pull/42
224230
[p43]: https://github.com/davidfritzsche/pytest-mypy-testing/pull/43
231+
[p47]: https://github.com/davidfritzsche/pytest-mypy-testing/pull/47

mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: CC0-1.0
33
[mypy]
44

5-
python_version = 3.7
5+
python_version = 3.8
66

77
mypy_path = src
88

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ dist-name = "pytest-mypy-testing"
3030
home-page = "https://github.com/davidfritzsche/pytest-mypy-testing"
3131
license = "Apache-2.0 OR MIT"
3232
requires = [
33-
"pytest>=7,<8",
34-
"mypy>=0.931",
33+
"pytest>=7,<9",
34+
"mypy>=1.0",
3535
]
3636
requires-python = ">=3.7"
3737

tox.ini

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
[tox]
55
isolated_build = True
66
envlist =
7-
{py37,py38,py39}-pytest{70,71,72}-mypy{093,097,10}
8-
{py310,py311}-pytest{70,71,72}-mypy{093,097,10}
9-
py-pytest{70,71,72}-mypy{093,097,10}
7+
py37-pytest{70,71,72,74}-mypy{10,14}
8+
{py38,py39,py310,py311,py312}-pytest{70,71,72,80}-mypy{10,18}
9+
py-pytest{70,71,72,80}-mypy{10,18}
1010
linting
1111

1212
[testenv]
@@ -15,6 +15,8 @@ deps =
1515
pytest70: pytest~=7.0.1
1616
pytest71: pytest~=7.1.3
1717
pytest72: pytest~=7.2.1
18+
pytest74: pytest~=7.4.4
19+
pytest80: pytest~=8.0.1
1820
mypy093: mypy==0.931
1921
mypy094: mypy==0.942
2022
mypy095: mypy==0.950
@@ -23,6 +25,8 @@ deps =
2325
mypy097: mypy==0.971
2426
mypy099: mypy==0.991
2527
mypy10: mypy==1.0.1
28+
mypy14: mypy==1.4.1
29+
mypy18: mypy==1.8.0
2630
setenv =
2731
COVERAGE_FILE={toxinidir}/build/{envname}/coverage
2832
commands =

0 commit comments

Comments
 (0)