[tox] envlist = linters, ansible{27, 28, 29, -base} isolated_build = true [tox:.package] ## Required for poetry # note tox will use the same python version as under what tox is installed to package # so unless this is python 3 you can require a given python version for the packaging # environment via the basepython key basepython = python3 [testenv] deps = poetry >= 1.0.5 mock ansible27: ansible<2.8 ansible28: ansible<2.9 ansible29: ansible<2.10 ansible-base: ansible-base passenv = HOME skip_install = true commands= poetry install -v poetry env info poetry run py.test -v -n 4 -m "not serial" test poetry run py.test -v test -m serial [testenv:linters] basepython = python3 commands= poetry install poetry run flake8 --version poetry run flake8 docs ansible_runner test poetry run yamllint --version poetry run yamllint -s . [testenv:py36] deps = poetry >= 1.0.5 mock ansible passenv = HOME skip_install = true commands= poetry install -v poetry env info poetry run py.test -v -n 4 -m "not serial" test poetry run py.test -v test -m serial [testenv:py37] deps = poetry >= 1.0.5 mock ansible passenv = HOME skip_install = true commands= poetry install -v poetry env info poetry run py.test -v -n 4 -m "not serial" test poetry run py.test -v test -m serial