From 94de68529776bdaaacc9d51ce48f136afec630bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez=20Mondrag=C3=B3n?= Date: Tue, 7 Oct 2025 00:37:39 -0600 Subject: [PATCH] Dropped support for pytest 6 According to the [ClickPy data for pytest](https://clickpy.clickhouse.com/dashboard/pytest?min_date=2025-01-01&max_date=2025-10-07), pytest v6 represents a very small fraction of downloads, so I think it's fine to remove support for it. --- .github/workflows/test.yml | 7 ------- CHANGELOG.md | 2 +- pyproject.toml | 2 +- tox.ini | 4 +--- 4 files changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 20f2151..0b43233 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -56,13 +56,6 @@ jobs: PYTEST_MAJOR_VERSION: 7 PYTEST_PLUGINS: pytest_github_actions_annotate_failures - - name: Run tests with PyTest 6 - run: tox - if: runner.os != 'Windows' - env: - PYTEST_MAJOR_VERSION: 6 - PYTEST_PLUGINS: pytest_github_actions_annotate_failures - post-test: name: All tests passed if: always() diff --git a/CHANGELOG.md b/CHANGELOG.md index 187567a..21655d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Unreleased -Nothing yet. +- Require pytest 7+ #116 ## 0.3.0 (2025-01-17) diff --git a/pyproject.toml b/pyproject.toml index 291c086..89310a5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,7 +40,7 @@ classifiers = [ ] keywords = ["ansible", "testing", "molecule", "plugin"] dependencies = [ - "pytest>=6.0.0" + "pytest>=7.0.0" ] [project.urls] diff --git a/tox.ini b/tox.ini index f743182..3741599 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - py{38,39,310,311,312,313}-pytest{6,7,8} + py{38,39,310,311,312,313}-pytest{7,8} [gh-actions] python = @@ -13,7 +13,6 @@ python = [gh-actions:env] PYTEST_MAJOR_VERSION = - 6: pytest6 7: pytest7 8: pytest8 @@ -21,7 +20,6 @@ PYTEST_MAJOR_VERSION = min_version = 4.22.0 groups = test deps = - pytest6: pytest>=6.0.0,<7.0.0 pytest7: pytest>=7.0.0,<8.0.0 pytest8: pytest>=8.0.0,<9.0.0