Richard Burton | dc0c6ed | 2020-04-08 16:39:05 +0100 | [diff] [blame] | 1 | [tox] |
| 2 | skip_missing_interpreters=true |
Nikhil Raj | a088cd0 | 2023-03-07 09:35:29 +0000 | [diff] [blame] | 3 | envlist = py38 |
Richard Burton | dc0c6ed | 2020-04-08 16:39:05 +0100 | [diff] [blame] | 4 | |
| 5 | [testenv] |
| 6 | deps = 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 |
Pavel Macenauer | 5e123f8 | 2020-04-15 13:28:29 +0000 | [diff] [blame] | 12 | requests==2.23.0 |
Nikhil Raj | 3522f93 | 2022-04-28 12:01:39 +0100 | [diff] [blame] | 13 | more-itertools==8.12.0 |
Richard Burton | dc0c6ed | 2020-04-08 16:39:05 +0100 | [diff] [blame] | 14 | |
| 15 | recreate = True |
Cathal Corbett | 31fb60b | 2021-11-24 18:14:31 +0000 | [diff] [blame] | 16 | allowlist_externals = /bin/sh |
Richard Burton | dc0c6ed | 2020-04-08 16:39:05 +0100 | [diff] [blame] | 17 | commands = |
Pavel Macenauer | 5e123f8 | 2020-04-15 13:28:29 +0000 | [diff] [blame] | 18 | python ./scripts/download_test_resources.py |
Richard Burton | dc0c6ed | 2020-04-08 16:39:05 +0100 | [diff] [blame] | 19 | 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] |
| 22 | envdir = env |
Nikhil Raj | a088cd0 | 2023-03-07 09:35:29 +0000 | [diff] [blame] | 23 | basepython = python3.8 |
Richard Burton | dc0c6ed | 2020-04-08 16:39:05 +0100 | [diff] [blame] | 24 | usedevelop = True |
| 25 | deps = {[testenv]deps} |
| 26 | tox |
| 27 | skip_install = True |
| 28 | commands = python -c "import sys; print('Dev environment created: ' + sys.executable)" |
| 29 | |
| 30 | [testenv:gen] |
Nikhil Raj | a088cd0 | 2023-03-07 09:35:29 +0000 | [diff] [blame] | 31 | basepython = python3.8 |
Richard Burton | dc0c6ed | 2020-04-08 16:39:05 +0100 | [diff] [blame] | 32 | skip_install = True |
| 33 | usedevelop = True |
| 34 | passenv = |
| 35 | ARMNN_LIB |
| 36 | ARMNN_INCLUDE |
| 37 | commands = |
| 38 | python setup.py clean --all |
| 39 | python ./swig_generate.py |
| 40 | python setup.py build_ext --inplace |
| 41 | |
| 42 | [testenv:doc] |
Nikhil Raj | a088cd0 | 2023-03-07 09:35:29 +0000 | [diff] [blame] | 43 | basepython = python3.8 |
Richard Burton | dc0c6ed | 2020-04-08 16:39:05 +0100 | [diff] [blame] | 44 | deps = pdoc3==0.6.3 |
| 45 | passenv = |
| 46 | PYARMNN_DEV_VER |
| 47 | commands = |
| 48 | python ./scripts/generate_docs.py --html --output-dir docs pyarmnn --force --template-dir=./docs_conf |
| 49 | |
| 50 | [testenv:pylint] |
Nikhil Raj | a088cd0 | 2023-03-07 09:35:29 +0000 | [diff] [blame] | 51 | basepython = python3.8 |
Richard Burton | dc0c6ed | 2020-04-08 16:39:05 +0100 | [diff] [blame] | 52 | deps = pylint==2.3.1 |
| 53 | numpy==1.17.2 |
| 54 | recreate = False |
| 55 | skip_install = True |
| 56 | usedevelop = True |
| 57 | setenv = |
| 58 | PYTHONPATH = src |
| 59 | commands = |
| 60 | sh -c "pylint --rcfile=pylintconfig src --output-format=parseable --reports=no > pylint_results.txt || true" |