blob: c442354f370c9f2b154217038139cfdbd586e8b1 [file] [log] [blame]
Richard Burtondc0c6ed2020-04-08 16:39:05 +01001[tox]
2skip_missing_interpreters=true
Nikhil Raja088cd02023-03-07 09:35:29 +00003envlist = py38
Richard Burtondc0c6ed2020-04-08 16:39:05 +01004
5[testenv]
6deps = pytest==5.2.0
7 pytest-cov==2.8.1
8 attrs==19.3.0
9 setuptools==41.6.0
10 numpy==1.17.2
11 pillow==6.1.0
Ryan OShea1ed38e92023-08-03 17:22:31 +010012 requests==2.31.0
Nikhil Raj3522f932022-04-28 12:01:39 +010013 more-itertools==8.12.0
Richard Burtondc0c6ed2020-04-08 16:39:05 +010014
15recreate = True
Cathal Corbett31fb60b2021-11-24 18:14:31 +000016allowlist_externals = /bin/sh
Richard Burtondc0c6ed2020-04-08 16:39:05 +010017commands =
Pavel Macenauer5e123f82020-04-15 13:28:29 +000018 python ./scripts/download_test_resources.py
Richard Burtondc0c6ed2020-04-08 16:39:05 +010019 python -m pytest test/ -v {posargs} --junit-xml=test_report_junit-{envname}.xml --cov=pyarmnn --cov-report xml:coverage-{envname}.xml
20
21[testenv:devenv]
22envdir = env
Nikhil Raja088cd02023-03-07 09:35:29 +000023basepython = python3.8
Richard Burtondc0c6ed2020-04-08 16:39:05 +010024usedevelop = True
25deps = {[testenv]deps}
26 tox
27skip_install = True
28commands = python -c "import sys; print('Dev environment created: ' + sys.executable)"
29
30[testenv:gen]
Nikhil Raja088cd02023-03-07 09:35:29 +000031basepython = python3.8
Richard Burtondc0c6ed2020-04-08 16:39:05 +010032skip_install = True
33usedevelop = True
34passenv =
35 ARMNN_LIB
36 ARMNN_INCLUDE
37commands =
38 python setup.py clean --all
39 python ./swig_generate.py
40 python setup.py build_ext --inplace
41
42[testenv:doc]
Nikhil Raja088cd02023-03-07 09:35:29 +000043basepython = python3.8
Richard Burtondc0c6ed2020-04-08 16:39:05 +010044deps = pdoc3==0.6.3
45passenv =
46 PYARMNN_DEV_VER
47commands =
48 python ./scripts/generate_docs.py --html --output-dir docs pyarmnn --force --template-dir=./docs_conf
49
50[testenv:pylint]
Nikhil Raja088cd02023-03-07 09:35:29 +000051basepython = python3.8
Richard Burtondc0c6ed2020-04-08 16:39:05 +010052deps = pylint==2.3.1
53 numpy==1.17.2
54recreate = False
55skip_install = True
56usedevelop = True
57setenv =
58 PYTHONPATH = src
59commands =
60 sh -c "pylint --rcfile=pylintconfig src --output-format=parseable --reports=no > pylint_results.txt || true"