2020-05-20 01:13:06 +03:00
|
|
|
[tox]
|
|
|
|
|
envlist = py3
|
|
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
|
skipdist=True
|
|
|
|
|
skip_install=True
|
|
|
|
|
deps =
|
|
|
|
|
-rrequirements.txt
|
2020-07-10 11:53:56 +02:00
|
|
|
-rrequirements_test.txt
|
2021-06-09 15:06:21 +03:00
|
|
|
mypy<0.900
|
2020-05-20 01:13:06 +03:00
|
|
|
flake8-bugbear
|
2020-08-11 09:28:55 +02:00
|
|
|
pytest-xdist
|
2020-05-20 01:13:06 +03:00
|
|
|
setenv =
|
2020-07-10 11:53:56 +02:00
|
|
|
NGRAPH_BACKEND = {env:NGRAPH_BACKEND:"CPU"}
|
|
|
|
|
PYTHONPATH = {env:PYTHONPATH}
|
2021-04-01 13:04:51 +02:00
|
|
|
ngraph_DIR = {env:ngraph_DIR}
|
2020-08-07 08:58:57 +02:00
|
|
|
passenv =
|
|
|
|
|
http_proxy
|
|
|
|
|
https_proxy
|
2020-05-20 01:13:06 +03:00
|
|
|
commands=
|
|
|
|
|
{envbindir}/python setup.py bdist_wheel
|
|
|
|
|
{envbindir}/pip install --no-index --pre --find-links=dist/ ngraph-core
|
2020-07-10 11:53:56 +02:00
|
|
|
flake8 {posargs:src/ setup.py}
|
|
|
|
|
flake8 --ignore=D100,D101,D102,D103,D104,D105,D107,W503 tests/ # ignore lack of docs in tests
|
|
|
|
|
mypy --config-file=tox.ini {posargs:src/}
|
2020-09-29 18:05:31 +02:00
|
|
|
pytest --backend={env:NGRAPH_BACKEND} tests -v -k 'not _cuda' --ignore=tests/test_onnx/test_zoo_models.py
|
2021-04-01 13:04:51 +02:00
|
|
|
|
|
|
|
|
[testenv:zoo_models]
|
|
|
|
|
commands=
|
|
|
|
|
{envbindir}/python setup.py bdist_wheel
|
|
|
|
|
{envbindir}/pip install --no-index --pre --find-links=dist/ ngraph-core
|
Azure CI: Enable nGaph ONNX check (#2631)
* GitHub CI: Add nGraph ONNX check
* Fix job name
* Fix commands
* Enable nGraph Docker
* Fix
* Fix
* Fix
* Remove Actions
* Decrease a number of workers for executing models tests
* Enable "Docker run tests"
* Unset parallel execution
* Add cloning models
* Update model_zoo_preprocess.sh cmd
* Fix model_zoo_preprocess.sh cmd
* Add share
* ls -alR /mnt/onnxtestdata
* Change path
* move clone models
* Update script
* Add wget
* Update
* Update to master
* Update
* Update
* clone into tmp
* Enable clone
* Fix
* Use model_zoo_preprocess
* Add copy to share
* Enable tests
* Get MSFT
* Run tests
* Try 16 cores
* rub tests
* list models
* run tests
* Run tests, no --model_zoo_xfail
* Run tests, -n 8
* Run tests, -n 1
* Run tests, -n 4
* Run tests, -n 2
* Run with -n 1
* Update info
* First try to run onnx ci:
* disable MSFT models for first try,
* try to align onnx_models
* Enable steps
* Update cmake
* Add destination for cmake build
* Try to fix cmake build
* set ninja and instal dependencies
* Revert changes from Blaczkowski, Rafal
* Add swapfile 15 GB, run on AMD CPU 16 cores, 64 GB RAM
* Enable model_zoo_preprocess.sh
* Add reference-if-able
* Update
* test_zoo_models.py -n 8
* Fix clone
* Set LIN_VMSS_VENV_EPHEMERAL_WU2, F8s_v2
* git clone --single-branch
* test_zoo_models.py -n 6, D16as_v4
* -n 4
* clean
* -n 2
* -n 4, swap 48 GB
* E16ds_v4 (16-128), -n 8
* -n 8
* Set LIN_VMSS_VENV_ONNX_WU2
* -n 4
* del -n 16 for ut
Co-authored-by: rblaczko <rafal.blaczkowski@intel.com>
2021-02-05 17:48:16 +03:00
|
|
|
pytest --backend={env:NGRAPH_BACKEND} tests/test_onnx/test_zoo_models.py -v -n 4 -k 'not _cuda' --model_zoo_xfail
|
2020-08-07 08:58:57 +02:00
|
|
|
|
2020-05-20 01:13:06 +03:00
|
|
|
[testenv:devenv]
|
|
|
|
|
envdir = devenv
|
|
|
|
|
usedevelop = True
|
|
|
|
|
deps = -rrequirements.txt
|
|
|
|
|
|
|
|
|
|
[flake8]
|
|
|
|
|
inline-quotes = "
|
2020-07-10 11:53:56 +02:00
|
|
|
max-line-length=110
|
2020-05-20 01:13:06 +03:00
|
|
|
max-complexity=7
|
|
|
|
|
# ignore:
|
|
|
|
|
# D100 - Missing docstring in public module
|
|
|
|
|
# D104 - Missing docstring in public package
|
|
|
|
|
# D105 - Missing docstring in magic method
|
|
|
|
|
# D107 - Missing docstring in __init__
|
|
|
|
|
# D412 - No blank lines allowed between a section header and its content
|
|
|
|
|
# F401 - module imported but unused
|
|
|
|
|
# W503 - line break before binary operator (prefer line breaks before op, not after)
|
|
|
|
|
ignore=D100,D104,D105,D107,D412,F401,W503
|
|
|
|
|
|
|
|
|
|
[mypy]
|
|
|
|
|
ignore_missing_imports=True
|
|
|
|
|
follow_imports=normal
|
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
disallow_untyped_calls = True
|
|
|
|
|
check_untyped_defs = True
|
|
|
|
|
show_error_context = True
|
|
|
|
|
show_column_numbers = True
|
|
|
|
|
show_none_errors = True
|
|
|
|
|
|
|
|
|
|
# put custom per-file options here in sections that map their names into filenames, e.g. gta_workflow/filename.py is
|
|
|
|
|
# [mypy-ngraph/filename]
|
|
|
|
|
|
|
|
|
|
[mypy-test.*]
|
|
|
|
|
disallow_untyped_defs = False
|
|
|
|
|
|
2020-07-03 18:11:39 +02:00
|
|
|
[isort]
|
|
|
|
|
multi_line_output=3
|
|
|
|
|
include_trailing_comma=True
|
|
|
|
|
force_grid_wrap=0
|
|
|
|
|
use_parentheses=True
|
|
|
|
|
line_length=100
|
|
|
|
|
default_section=FIRSTPARTY
|
|
|
|
|
sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
|
|
|
|
|
known_third_party=openvino
|
|
|
|
|
|
2020-05-20 01:13:06 +03:00
|
|
|
[pytest]
|
2020-07-03 18:11:39 +02:00
|
|
|
addopts = --strict-markers
|