Skip to content

Add support for pytest 8 #47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ name: Python package
on: [push]

jobs:
test-py310:
test-py37:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 4
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10"]
python-version: ["3.7"]

steps:
- uses: actions/checkout@v3
Expand All @@ -28,15 +28,15 @@ jobs:
TOX_PARALLEL_NO_SPINNER: "1"
run: |
inv mkdir build/coverage-data
inv tox -e "py310-*"
inv tox -e "py37-*"

test-py37-py38-py39:
test-py38-py39-py310:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 8
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9"]
python-version: ["3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v3
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ decorators are extracted from the ast.

# Changelog

## v0.1.2 (unreleased)

* Add support for pytest 8 (no actual change, but declare support)
([#46][i46], [#47][p47])

## v0.1.1

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

[p6]: https://github.com/davidfritzsche/pytest-mypy-testing/pull/6
[p7]: https://github.com/davidfritzsche/pytest-mypy-testing/pull/7
Expand All @@ -222,3 +228,4 @@ decorators are extracted from the ast.
[p41]: https://github.com/davidfritzsche/pytest-mypy-testing/pull/41
[p42]: https://github.com/davidfritzsche/pytest-mypy-testing/pull/42
[p43]: https://github.com/davidfritzsche/pytest-mypy-testing/pull/43
[p47]: https://github.com/davidfritzsche/pytest-mypy-testing/pull/47
2 changes: 1 addition & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: CC0-1.0
[mypy]

python_version = 3.7
python_version = 3.8

mypy_path = src

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ dist-name = "pytest-mypy-testing"
home-page = "https://github.com/davidfritzsche/pytest-mypy-testing"
license = "Apache-2.0 OR MIT"
requires = [
"pytest>=7,<8",
"mypy>=0.931",
"pytest>=7,<9",
"mypy>=1.0",
]
requires-python = ">=3.7"

Expand Down
10 changes: 7 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
[tox]
isolated_build = True
envlist =
{py37,py38,py39}-pytest{70,71,72}-mypy{093,097,10}
{py310,py311}-pytest{70,71,72}-mypy{093,097,10}
py-pytest{70,71,72}-mypy{093,097,10}
py37-pytest{70,71,72,74}-mypy{10,14}
{py38,py39,py310,py311,py312}-pytest{70,71,72,80}-mypy{10,18}
py-pytest{70,71,72,80}-mypy{10,18}
linting

[testenv]
Expand All @@ -15,6 +15,8 @@ deps =
pytest70: pytest~=7.0.1
pytest71: pytest~=7.1.3
pytest72: pytest~=7.2.1
pytest74: pytest~=7.4.4
pytest80: pytest~=8.0.1
mypy093: mypy==0.931
mypy094: mypy==0.942
mypy095: mypy==0.950
Expand All @@ -23,6 +25,8 @@ deps =
mypy097: mypy==0.971
mypy099: mypy==0.991
mypy10: mypy==1.0.1
mypy14: mypy==1.4.1
mypy18: mypy==1.8.0
setenv =
COVERAGE_FILE={toxinidir}/build/{envname}/coverage
commands =
Expand Down