From c833b6cb0bb00cd4c5110f8dcd457233b46b7736 Mon Sep 17 00:00:00 2001 From: James Graham <j.graham@soton.ac.uk> Date: Wed, 28 Apr 2021 21:34:40 +0100 Subject: [PATCH] ci: simplify tox config --- tox.ini | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-) diff --git a/tox.ini b/tox.ini index b23fb11..563aaaf 100644 --- a/tox.ini +++ b/tox.ini @@ -1,36 +1,19 @@ [tox] isolated_build = true -envlist = clean,lint,test,report +envlist = lint,test -[testenv] +[testenv:lint] deps = - coverage flake8 - pytest - pytest-cov - -[testenv:lint] commands = flake8 pycgtool [testenv:test] +deps = + pytest + pytest-cov commands = - pytest --cov=pycgtool --cov-append 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 + pytest --cov=pycgtool --cov-fail-under=80 test/ [flake8] max-line-length = 120 -- GitLab