2 envlist = docs,pep8,pylint,yamllint,bashate,py310,cover,perm
6 pip_version = pip==20.2.4
9 -c{toxinidir}/upper-constraints.txt
10 -chttps://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt
11 -r{toxinidir}/requirements.txt
12 -r{toxinidir}/test-requirements.txt
13 install_command = pip install {opts} {packages}
15 pytest xtesting/tests/unit \
16 --junit-xml=junit.xml \
17 --html=report.html --self-contained-html \
18 --cov=xtesting --cov-reset --cov-report html \
22 basepython = python3.10
24 doc8 README.rst api --ignore-path api/build
25 sphinx-build -W -b html api/ api/build
28 basepython = python3.10
32 basepython = python3.10
33 whitelist_externals = bash
35 pylint --min-similarity-lines=10 \
36 --disable=locally-disabled --ignore-imports=y --reports=n --extension-pkg-whitelist=lxml xtesting
39 basepython = python3.10
45 yamllint -s {[testenv:yamllint]files}
48 basepython = python3.10
51 commands = bashate {[testenv:bashate]files}
54 basepython = python3.10
55 commands = bandit -r xtesting -x tests -n 5 -ll -s B602
58 basepython = python3.10
60 xtesting/tests/unit/ci
61 xtesting/tests/unit/core
62 xtesting/tests/unit/utils/test_decorators.py
64 pytest --cov=xtesting --cov-reset --cov-report html --cov-fail-under=100 \
68 basepython = python3.10
69 whitelist_externals = bash
70 path=. -not -path './.tox/*' -not -path './.git/*' -not -path './doc/reveal.js/*'
73 find {[testenv:perm]path} \( -type f -not -perm 644 -o -type d -not -perm 755 \) \
74 -exec ls -l \{\} + | grep '.' && exit 1 || exit 0"
76 find {[testenv:perm]path} -exec file \{\} + | grep CRLF && exit 1 || exit 0"