Test MO wheel content (#5054)

This commit is contained in:
Dmitry Kurtaev
2021-04-01 18:03:28 +03:00
committed by GitHub
parent 15b36ee8d1
commit 5272bd4ba9
3 changed files with 12 additions and 1 deletions

View File

@@ -80,7 +80,17 @@ jobs:
python3 setup.py sdist bdist_wheel
working-directory: model-optimizer
- name: Test
- name: Test package content
run: |
echo "src = open('openvino_mo.egg-info/SOURCES.txt', 'rt').read().split()" | tee -a test_wheel.py
echo "ref = open('automation/package_BOM.txt', 'rt').read().split()" | tee -a test_wheel.py
echo "for name in ref:" | tee -a test_wheel.py
echo " if name.endswith('.py'):" | tee -a test_wheel.py
echo " assert name in src or './' + name in src, name + ' file missed'" | tee -a test_wheel.py
python3 test_wheel.py
working-directory: model-optimizer
- name: Test conversion
run: |
wget -q http://download.tensorflow.org/models/mobilenet_v1_2018_08_02/mobilenet_v1_1.0_224.tgz
tar -xf mobilenet_v1_1.0_224.tgz