From fc84b50d7b0646fb0d893fcf0cd5f084556ab12d Mon Sep 17 00:00:00 2001 From: "David A. Ramos" Date: Tue, 30 Apr 2024 13:52:58 -0700 Subject: [PATCH] Support PyTest 8.x --- .github/workflows/ci.yaml | 6 ++++++ README.md | 2 +- tox.ini | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 028b97b..9fdf05b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -85,6 +85,12 @@ jobs: - pytest73-xdist - pytest74 - pytest74-xdist + - pytest80 + - pytest80-xdist + - pytest81 + - pytest81-xdist + - pytest82 + - pytest82-xdist exclude: # PyTest < 7.3 uses methods that are deprecated in Python 3.12 and emits warnings that # cause the integration tests to fail. diff --git a/README.md b/README.md index 85d6f81..3093673 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ for running `unittest` tests. This plugin maintains compatibility with the PyTest and Python versions listed below: ![Python versions](https://img.shields.io/pypi/pyversions/pytest-unflakable) -![PyTest versions](https://img.shields.io/badge/pytest-6.2%20%7C%207.0%20%7C%207.1%20%7C%207.2%20%7C%207.3%20%7C%207.4-blue) +![PyTest versions](https://img.shields.io/badge/pytest-6.2%20%7C%207.0%20%7C%207.1%20%7C%207.2%20%7C%207.3%20%7C%207.4%20%7C%208.0%20%7C%208.1%20%7C%208.2-blue) ## Contributing diff --git a/tox.ini b/tox.ini index ac02eaf..6430ea1 100644 --- a/tox.ini +++ b/tox.ini @@ -72,6 +72,39 @@ deps = setenv = TEST_XDIST = 1 +[testenv:pytest80] +deps = + pytest>=8.0.0,<8.1.0 + +[testenv:pytest80-xdist] +deps = + pytest>=8.0.0,<8.1.0 + pytest-xdist==3.6.1 +setenv = + TEST_XDIST = 1 + +[testenv:pytest81] +deps = + pytest>=8.1.0,<8.2.0 + +[testenv:pytest81-xdist] +deps = + pytest>=8.1.0,<8.2.0 + pytest-xdist==3.6.1 +setenv = + TEST_XDIST = 1 + +[testenv:pytest82] +deps = + pytest>=8.2.0,<8.3.0 + +[testenv:pytest82-xdist] +deps = + pytest>=8.2.0,<8.3.0 + pytest-xdist==3.6.1 +setenv = + TEST_XDIST = 1 + [testenv:autopep8] deps = autopep8==2.0.4