ceph/qa/tox.ini
Kefu Chai 127dd54db8 qa: add pytest to deps of py3 env
otherwise it is mising when running test, and we'd have following
failure:

py3: exit 2 (0.00 seconds) /home/jenkins-build/build/workspace/ceph-pull-requests/qa> pytest --assert=plain test_import.py

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2022-12-08 23:57:59 +08:00

47 lines
901 B
INI

[tox]
envlist = flake8, mypy, pytest, deadsymlinks
skipsdist = True
[testenv]
setenv =
LC_ALL = C.UTF-8
LANG = C
[testenv:flake8]
basepython = python3
deps=
flake8
commands=flake8 --select=F,E9 --exclude=venv,.tox
[testenv:mypy]
basepython = python3
deps =
mypy
types-boto
types-requests
types-jwt
types-paramiko
types-PyYAML
types-cryptography
types-python-dateutil
-c{toxinidir}/../src/mypy-constrains.txt
commands = mypy {posargs:.}
[testenv:py3]
basepython = python3
deps =
{env:TEUTHOLOGY_GIT:git+https://github.com/ceph/teuthology.git@main}#egg=teuthology[coverage,orchestra,test]
httplib2
pytest
commands =
pytest --assert=plain test_import.py
pytest tasks/tests --suite-dir {toxinidir}/suites {posargs}
[testenv:deadsymlinks]
basepython = python3
toxworkdir = {toxinidir}
allowlist_externals =
bash
commands =
bash -c '! (find . -xtype l | grep ^)'