blob: 3ba47c1377c22219befc891c86de704979a4b3f8 [file] [log] [blame]
Richard Burtondc0c6ed2020-04-08 16:39:05 +01001[tox]
2skip_missing_interpreters=true
3envlist =
4 py35
5 py36
6 py37
7
8[testenv]
9deps = pytest==5.2.0
10 pytest-cov==2.8.1
11 attrs==19.3.0
12 setuptools==41.6.0
13 numpy==1.17.2
14 pillow==6.1.0
Pavel Macenauer5e123f82020-04-15 13:28:29 +000015 requests==2.23.0
Nikhil Raj3522f932022-04-28 12:01:39 +010016 more-itertools==8.12.0
Richard Burtondc0c6ed2020-04-08 16:39:05 +010017
18recreate = True
Cathal Corbett31fb60b2021-11-24 18:14:31 +000019allowlist_externals = /bin/sh
Richard Burtondc0c6ed2020-04-08 16:39:05 +010020commands =
Pavel Macenauer5e123f82020-04-15 13:28:29 +000021 python ./scripts/download_test_resources.py
Richard Burtondc0c6ed2020-04-08 16:39:05 +010022 python -m pytest test/ -v {posargs} --junit-xml=test_report_junit-{envname}.xml --cov=pyarmnn --cov-report xml:coverage-{envname}.xml
23
24[testenv:devenv]
25envdir = env
26basepython = python3.6
27usedevelop = True
28deps = {[testenv]deps}
29 tox
30skip_install = True
31commands = python -c "import sys; print('Dev environment created: ' + sys.executable)"
32
33[testenv:gen]
34basepython = python3.6
35skip_install = True
36usedevelop = True
37passenv =
38 ARMNN_LIB
39 ARMNN_INCLUDE
40commands =
41 python setup.py clean --all
42 python ./swig_generate.py
43 python setup.py build_ext --inplace
44
45[testenv:doc]
46basepython = python3.6
47deps = pdoc3==0.6.3
48passenv =
49 PYARMNN_DEV_VER
50commands =
51 python ./scripts/generate_docs.py --html --output-dir docs pyarmnn --force --template-dir=./docs_conf
52
53[testenv:pylint]
54basepython = python3.6
55deps = pylint==2.3.1
56 numpy==1.17.2
57recreate = False
58skip_install = True
59usedevelop = True
60setenv =
61 PYTHONPATH = src
62commands =
63 sh -c "pylint --rcfile=pylintconfig src --output-format=parseable --reports=no > pylint_results.txt || true"