[tox]
envlist =
    lint
    py{py3, 39, 38, 37, 36}

[testenv]
extras =
    tests
commands =
    {envpython} setup.py --version
    coverage erase

    # Unit tests
    {envpython} -m pytest --cov osmviz --cov test --cov-append test/unit/test_manager.py {posargs}
    {envpython} -m pytest --cov osmviz --cov test --cov-append test/functional/test_manager.py {posargs}
    coverage xml

[testenv:lint]
skip_install = true
deps =
    pre-commit
commands =
    pre-commit run --all-files

# Test at least one version with tqdm
[testenv:py37]
deps =
    tqdm
