Skip to content
Snippets Groups Projects
Verified Commit c833b6cb authored by James Graham's avatar James Graham
Browse files

ci: simplify tox config

parent 94d4db32
Branches
No related tags found
No related merge requests found
[tox] [tox]
isolated_build = true isolated_build = true
envlist = clean,lint,test,report envlist = lint,test
[testenv] [testenv:lint]
deps = deps =
coverage
flake8 flake8
pytest
pytest-cov
[testenv:lint]
commands = commands =
flake8 pycgtool flake8 pycgtool
[testenv:test] [testenv:test]
deps =
pytest
pytest-cov
commands = commands =
pytest --cov=pycgtool --cov-append test/ pytest --cov=pycgtool --cov-fail-under=80 test/
setenv =
COVERAGE_FILE = .coverage.{envname}
[testenv:report]
skip_install = true
commands =
coverage combine
coverage html
coverage report --fail-under=80
depends = test
[testenv:clean]
skip_install = true
commands =
coverage erase
[flake8] [flake8]
max-line-length = 120 max-line-length = 120
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment