Skip to content

Commit

Permalink
Drop support for pytest<6 (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon authored Oct 22, 2024
1 parent 8358442 commit d6add64
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 23 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
- main
pull_request:

env:
FORCE_COLOR: "1"

jobs:
test:
strategy:
Expand Down Expand Up @@ -38,22 +41,6 @@ jobs:
- name: Test packaging
run: tox -e pkg

- name: Run tests with PyTest 4
run: tox
if: "!startsWith(matrix.python-version, '3.1')"
env:
PLATFORM: ${{ matrix.os }}
PYTEST_MAJOR_VERSION: 4
PYTEST_PLUGINS: pytest_github_actions_annotate_failures

- name: Run tests with PyTest 5
run: tox
if: "!startsWith(matrix.python-version, '3.1')"
env:
PLATFORM: ${{ matrix.os }}
PYTEST_MAJOR_VERSION: 5
PYTEST_PLUGINS: pytest_github_actions_annotate_failures

- name: Run tests with PyTest 6
run: tox
env:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

### Incompatible changes

- Require pytest 6+ #86 (thanks to @edgarrmondragon)

## 0.2.0 (2023-05-04)

### Incompatible changes
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ classifiers = [
]
keywords = ["ansible", "testing", "molecule", "plugin"]
dependencies = [
"pytest>=4.0.0"
"pytest>=6.0.0"
]

[project.urls]
Expand Down
7 changes: 1 addition & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[tox]
envlist =
py{37,38,39}-pytest{4,5,6,7}-{linux,windows}
py{310,311,312}-pytest{6,7}-{linux,windows}
py{37,38,39,310,311,312}-pytest{6,7}-{linux,windows}
pkg

[gh-actions]
Expand All @@ -19,16 +18,12 @@ PLATFORM =
windows-latest: windows

PYTEST_MAJOR_VERSION =
4: pytest4
5: pytest5
6: pytest6
7: pytest7

[testenv]
deps =
-rrequirements.txt
pytest4: pytest>=4.0.0,<5.0.0
pytest5: pytest>=5.0.0,<6.0.0
pytest6: pytest>=6.0.0,<7.0.0
pytest7: pytest>=7.0.0,<7.4.0

Expand Down

0 comments on commit d6add64

Please sign in to comment.