[tox]
skipsdist=True
envlist = linters,py{27,36,37},docs,validate

[testenv]
setenv =
    PYTHONPATH=$PYTHONPATH:{toxinidir}
deps=
    distroinfo
    pytest<6.0.0
    pytest-html
    pytest-xdist
    pyyaml
    six
    yamllint
commands=
    # TODO: remove linters from default env once we have tox-linters enabled on CI
    {[testenv:linters]commands}
    python -m pytest --html={envlogdir}/reports.html --self-contained-html -n auto {posargs}

[testenv:linters]
deps=
    yamllint
commands=
    python -m yamllint -f parsable --strict .

[testenv:docs]
deps=
    sphinx
    pyyaml
commands=
    sphinx-build -W -b html -d {envtmpdir}/doctrees source  build/html

[tox]
skipsdist=True
envlist = linters,py{27,36,37},docs,validate

[testenv]
setenv =
    PYTHONPATH=$PYTHONPATH:{toxinidir}
deps=
    distroinfo
    pytest
    pytest-html
    pytest-xdist
    pyyaml
    six
    yamllint
commands=
    # TODO: remove linters from default env once we have tox-linters enabled on CI
    {[testenv:linters]commands}
    python -m pytest --html={envlogdir}/reports.html --self-contained-html -n auto {posargs}

[testenv:linters]
deps=
    yamllint
commands=
    python -m yamllint -f parsable --strict .

[testenv:docs]
deps=
    sphinx
    pyyaml
commands=
    sphinx-build -W -b html -d {envtmpdir}/doctrees source  build/html

Revert "Pin pytest to < 6.0.0"
Revert "Pin pytest to < 6.0.0"

pytest-6.0.1 is released with the fix.

This reverts commit db8e6a78dcee3a37bf30898ae38eca821a72d9d8.

Change-Id: I72224db140b74ab3ed9ec3ab5463a18808bd8f5c
