-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
43 lines (38 loc) · 1.08 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[tox]
minversion = 3.26.0
isolated_build = True
envlist = qc.sty,qc.cov,qc.sec,py310
[testenv]
install_command = pip install -U {opts} {packages}
# if recreating envdir fails in tox>=4, comment the following line
envdir = {toxworkdir}/shared
commands = pytest --numprocesses=auto {posargs}
allowlist_externals =
mkdir
git
apt-get
bash
# already installed in the sqa docker
#commands_pre =
# bash -c "apt-get update && apt-get install -y git"
passenv =
RCLONERCLONE_CONFIG_RSHARE_VENDOR
RCLONE_CONFIG
RCLONE_CONFIG_RSHARE_PASS
RCLONE_CONFIG_RSHARE_URL
RCLONE_CONFIG_RSHARE_TYPE
RCLONE_CONFIG_RSHARE_USER
setenv =
OS_TEST_TIMEOUT=360
deps = -r{toxinidir}/requirements-test.txt
[testenv:qc.sty]
commands =
flake8 --statistics --tee --output-file={toxinidir}/flake8.log \
--format=pylint ai4life api data tests
[testenv:qc.cov]
commands =
pytest --cov=api --cov=ai4life --cov-report=html:{toxinidir}/htmlcov --cov-report=term-missing tests
[testenv:qc.sec]
commands =
mkdir -p {toxinidir}/bandit
bandit -r ai4life api -x tests -o {toxinidir}/bandit/index.html