X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/0604bdd5f693da9f1c78f9d9fa2276f0c7b6c17b..b13f09caed970090efa8a6c7205d71cc82ff6c97:/tox.ini?ds=inline diff --git a/tox.ini b/tox.ini index 48c35e3..ecf3ecc 100644 --- a/tox.ini +++ b/tox.ini @@ -1,17 +1,17 @@ [tox] envlist = clean, - py{27,35,36,37,38}, + py{37,38,39,310,311}, stats [testenv] deps = - nose coverage passenv = HOME ; Needed to find locally installed fonts when testing PDF production. +download = true commands = - nosetests --with-coverage --cover-package=librarian -d --with-doctest --with-xunit --exe -install_command = pip install --extra-index-url https://py.mdrn.pl/simple {packages} + coverage run +install_command = pip install numpy; pip install --extra-index-url https://py.mdrn.pl/simple {packages} [testenv:clean] basepython = python3 @@ -22,7 +22,17 @@ deps = coverage [testenv:stats] basepython = python3 commands = + coverage combine coverage report coverage html deps = coverage +[coverage:run] +parallel = True +source_pkgs = librarian +command_line = -m unittest + +[coverage:paths] +source = src/ + .tox/*/lib/*/site-packages/ +