Modernize the meta files of the project
All checks were successful
Run tests / Execute tox to run the test suite (push) Successful in 2m40s

This commit is contained in:
2024-09-09 11:56:38 +02:00
parent 8a766c760d
commit 05da45f271
6 changed files with 54 additions and 69 deletions

29
tox.ini
View File

@@ -1,10 +1,29 @@
[tox]
envlist = py311, py312
envlist = fresh, coverage
[testenv]
recreate = false
setenv =
PYTHONPATH = .
commands = python --version
python -m coverage run tests
coverage report --skip-covered
deps = -r{toxinidir}/requirements.txt
selenium
commands_pre = python --version
python -m django --version
commands = python tests
[testenv:fast]
description = Only run the testsuite
[testenv:fresh]
description = Run tests in freshly created environment (with coverage)
recreate = true
deps = {[testenv]deps}
coverage
commands_pre = {[testenv]commands_pre}
python -m coverage --version
commands = python -m coverage run tests
[testenv:coverage]
description = Report test coverage
deps = {[testenv:fresh]deps}
commands = python -m coverage report --skip-covered