Add tox.ini to test with multiple Python versions

This commit is contained in:
Administrator 2023-04-12 01:31:00 +00:00
parent 8b04220c9f
commit 6dc1c8acd5
2 changed files with 16 additions and 0 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ dist
__pycache__
.pytest_cache
.coverage
.tox

15
tox.ini Normal file
View File

@ -0,0 +1,15 @@
[tox]
env_list =
py37
py38
py39
py310
py311
[testenv]
deps =
pytest~=7.2
pytest-socket~=0.6.0
pytest-cov~=4.0
pytest-mock~=3.6
commands = pytest --cov=sporestack --cov-fail-under=39 --cov-report=term --durations=3