Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Commit

Permalink
Support PyTest 8.x and remove Python 3.7 support
Browse files Browse the repository at this point in the history
Python 3.7 is EOL and incompatible with PyTest 8.x, so we stop testing
with it. Instead, we test the newest Python major release: 3.12.
  • Loading branch information
ramosbugs committed Apr 30, 2024
1 parent c8ed94a commit a631c3d
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]
python:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
tox_env:
- pytest62
- pytest62-xdist
Expand All @@ -85,6 +85,12 @@ jobs:
- pytest73-xdist
- pytest74
- pytest74-xdist
- pytest80
- pytest80-xdist
- pytest81
- pytest81-xdist
- pytest82
- pytest82-xdist

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ classifiers =
Topic :: Software Development :: Testing
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3 :: Only
Operating System :: OS Independent
License :: OSI Approved :: MIT License
Expand All @@ -36,7 +36,7 @@ package_dir=
=src
packages =
pytest_unflakable
python_requires = >=3.7
python_requires = >=3.8
install_requires =
pytest>=6.2.0
requests>=2.19.0
Expand Down
33 changes: 33 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a631c3d

Please sign in to comment.