Skip to content
Snippets Groups Projects
tox.ini 668 B
[tox]
envlist = py311

[flake8]
max-line-length = 120

[coverage:run]
concurrency = multiprocessing,thread

[testenv]
passenv = TEST_OPSDB_HOSTNAME,TEST_OPSDB_DBNAME,TEST_OPSDB_USERNAME,TEST_OPSDB_PASSWORD
deps =
    pytest-xdist
    pytest-cov
    flake8
    -r requirements.txt
#install_command = pip install --pre --extra-index-url http://pip.geant.net/ --trusted-host pip.geant.net {opts} {packages}

commands =
    coverage erase
    pytest -n auto --cov inventory_provider --cov-fail-under=80 --cov-report html --cov-report xml --cov-report term -p no:checkdocs
    flake8 inventory_provider test circuit_tree.py
    sphinx-build -M html docs/source docs/build