Added tools/ovc to PYTHONPATH for MO unit tests. (#18365)
* Added ovc to PYTHONPATH for MO unit tests. * Small correction. * Corrected PYTHONPATH for legacy FE layer tests. * Corrected PYTHONPATH for TFL FE layer tests.
This commit is contained in:
parent
84d35ab6f9
commit
25ead3a09a
@ -355,6 +355,8 @@ jobs:
|
||||
# TODO: fix 'No mock frontend API available'
|
||||
$(TEST_VENV)/bin/python3 -m pip install openvino-dev --find-links=$(INSTALL_DIR)/tools
|
||||
$(TEST_VENV)/bin/python3 -m pytest -s $(INSTALL_TEST_DIR)/mo/unit_tests --junitxml=$(INSTALL_TEST_DIR)/TEST-ModelOptimizer.xml
|
||||
env:
|
||||
PYTHONPATH: $(REPO_DIR)/tools/ovc/
|
||||
displayName: 'Model Optimizer UT'
|
||||
|
||||
# run not all smoke filter to save time in post-commit
|
||||
@ -388,14 +390,14 @@ jobs:
|
||||
$(TEST_VENV)/bin/python3 -m pip install -r $(LAYER_TESTS_DIR)/requirements.txt
|
||||
$(TEST_VENV)/bin/python3 -m pytest $(LAYER_TESTS_DIR)/tensorflow_tests/test_tf_Roll.py --ir_version=10 --junitxml=$(INSTALL_TEST_DIR)/TEST-tf_Roll.xmlTEST
|
||||
env:
|
||||
PYTHONPATH: $(LAYER_TESTS_DIR)
|
||||
PYTHONPATH: $(REPO_DIR)/tools/ovc/:$(LAYER_TESTS_DIR)
|
||||
displayName: 'TensorFlow 1 Layer Tests - Legacy FE'
|
||||
|
||||
- script: |
|
||||
$(TEST_VENV)/bin/python3 -m pip install -r $(LAYER_TESTS_DIR)/requirements.txt
|
||||
$(RUN_PREFIX) $(TEST_VENV)/bin/python3 -m pytest $(LAYER_TESTS_DIR)/tensorflow_lite_tests/ --junitxml=$(INSTALL_TEST_DIR)/TEST-tfl_fe.xmlTEST
|
||||
env:
|
||||
PYTHONPATH: $(REPO_DIR)/tools/mo/:$(LAYER_TESTS_DIR)
|
||||
PYTHONPATH: $(REPO_DIR)/tools/ovc/:$(REPO_DIR)/tools/mo/:$(LAYER_TESTS_DIR)
|
||||
TEST_DEVICE: CPU
|
||||
displayName: 'TensorFlow Lite Layer Tests - TFL FE'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user