python/tox.ini
Priyanka Saggu 4431c4d577
drop python2 support from k8s-client/python
Signed-off-by: Priyanka Saggu <priyankasaggu11929@gmail.com>
2021-05-14 23:05:33 +05:30

33 lines
732 B
INI

[tox]
envlist =
py3{5,6,7,8,9}
py3{5,6,7,8,9}-functional
[testenv]
passenv = TOXENV CI TRAVIS TRAVIS_*
usedevelop = True
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands =
python -V
!functional: pytest -vvv -s --ignore=kubernetes/e2e_test
functional: {toxinidir}/scripts/kube-init.sh pytest -vvv -s []
[testenv:docs]
commands =
python setup.py build_sphinx
[testenv:update-pycodestyle]
commands =
{toxinidir}/scripts/update-pycodestyle.sh
[testenv:coverage]
commands =
python -V
pytest --cov=kubernetes/watch --cov=kubernetes/config kubernetes/watch kubernetes/config
[testenv:codecov]
commands =
codecov