Modernize the meta files of the project
All checks were successful
Run tests / Execute tox to run the test suite (push) Successful in 2m40s
All checks were successful
Run tests / Execute tox to run the test suite (push) Successful in 2m40s
This commit is contained in:
29
tox.ini
29
tox.ini
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user