Used newer version of checkout github action (#14843)
* Used newer version of checkout github action * Updated actions/upload-artifact action version to use Node 16 * Updated actions * Experiment * Name documentation artifacts * Moved doxyrest version to environment * Extract PR number * Properly upload documentation * Updated github_org_control/config.json
This commit is contained in:
parent
f67b0d5b83
commit
4309325d4e
@ -4,7 +4,7 @@ trigger:
|
|||||||
- master
|
- master
|
||||||
- releases/*
|
- releases/*
|
||||||
paths:
|
paths:
|
||||||
exclude:
|
exclude:
|
||||||
- docs/
|
- docs/
|
||||||
- /**/docs/*
|
- /**/docs/*
|
||||||
- /**/*.md
|
- /**/*.md
|
||||||
@ -17,7 +17,7 @@ pr:
|
|||||||
- master
|
- master
|
||||||
- releases/*
|
- releases/*
|
||||||
paths:
|
paths:
|
||||||
exclude:
|
exclude:
|
||||||
- docs/
|
- docs/
|
||||||
- /**/docs/*
|
- /**/docs/*
|
||||||
- /**/*.md
|
- /**/*.md
|
||||||
@ -89,25 +89,25 @@ jobs:
|
|||||||
rd /Q /S $(BUILD_SAMPLES_DIR) & mkdir $(BUILD_SAMPLES_DIR)
|
rd /Q /S $(BUILD_SAMPLES_DIR) & mkdir $(BUILD_SAMPLES_DIR)
|
||||||
rd /Q /S $(BUILD_SAMPLES_TESTS_DIR) & mkdir $(BUILD_SAMPLES_TESTS_DIR)
|
rd /Q /S $(BUILD_SAMPLES_TESTS_DIR) & mkdir $(BUILD_SAMPLES_TESTS_DIR)
|
||||||
displayName: 'Make dir'
|
displayName: 'Make dir'
|
||||||
|
|
||||||
- script: curl -O https://www.python.org/ftp/python/3.10.7/python-3.10.7-amd64.exe
|
- script: curl -O https://www.python.org/ftp/python/3.10.7/python-3.10.7-amd64.exe
|
||||||
displayName: 'Download Python'
|
displayName: 'Download Python'
|
||||||
workingDirectory: $(WORK_DIR)
|
workingDirectory: $(WORK_DIR)
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
python-3.10.7-amd64.exe /passive InstallAllUsers=0 Include_launcher=0 TargetDir=C:\hostedtoolcache\windows\Python\3.10.7\x64
|
python-3.10.7-amd64.exe /passive InstallAllUsers=0 Include_launcher=0 TargetDir=C:\hostedtoolcache\windows\Python\3.10.7\x64
|
||||||
cp C:\hostedtoolcache\windows\Python\3.8.2\x64.complete C:\hostedtoolcache\windows\Python\3.10.7\x64.complete
|
cp C:\hostedtoolcache\windows\Python\3.8.2\x64.complete C:\hostedtoolcache\windows\Python\3.10.7\x64.complete
|
||||||
displayName: 'Install Python'
|
displayName: 'Install Python'
|
||||||
workingDirectory: $(WORK_DIR)
|
workingDirectory: $(WORK_DIR)
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- task: UsePythonVersion@0
|
- task: UsePythonVersion@0
|
||||||
displayName: 'Use Python'
|
displayName: 'Use Python'
|
||||||
inputs:
|
inputs:
|
||||||
versionSpec: '3.10.7'
|
versionSpec: '3.10'
|
||||||
disableDownloadFromRegistry: true
|
disableDownloadFromRegistry: true
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
powershell -command "Invoke-RestMethod -Headers @{\"Metadata\"=\"true\"} -Method GET -Uri http://169.254.169.254/metadata/instance/compute?api-version=2019-06-01 | format-custom"
|
powershell -command "Invoke-RestMethod -Headers @{\"Metadata\"=\"true\"} -Method GET -Uri http://169.254.169.254/metadata/instance/compute?api-version=2019-06-01 | format-custom"
|
||||||
tree C:\hostedtoolcache\windows\Python
|
tree C:\hostedtoolcache\windows\Python
|
||||||
|
22
.github/github_org_control/config.json
vendored
22
.github/github_org_control/config.json
vendored
@ -19,26 +19,34 @@
|
|||||||
},
|
},
|
||||||
"DRY_RUN": false,
|
"DRY_RUN": false,
|
||||||
"TEAM_TO_LABEL": {
|
"TEAM_TO_LABEL": {
|
||||||
"openvino-admins": "category: CI",
|
"openvino-ci-maintainers": "category: CI",
|
||||||
"openvino-maintainers": "category: IE common",
|
"openvino-maintainers": "category: inference",
|
||||||
"openvino-docs-maintainers": "category: docs",
|
"openvino-docs-maintainers": "category: docs",
|
||||||
"openvino-ie-maintainers": "category: IE common",
|
"openvino-ie-maintainers": "category: inference",
|
||||||
"openvino-ie-cpu-maintainers": "category: CPU",
|
"openvino-ie-cpu-maintainers": "category: CPU",
|
||||||
"openvino-ie-gna-maintainers": "category: GNA",
|
"openvino-ie-gna-maintainers": "category: GNA",
|
||||||
"openvino-ie-gpu-maintainers": "category: GPU",
|
"openvino-ie-gpu-maintainers": "category: GPU",
|
||||||
"openvino-ie-lpt-maintainers": "category: LP transformations",
|
"openvino-ie-lpt-maintainers": "category: LP transformations",
|
||||||
"openvino-ie-auto-multi-maintainers": "category: MULTI",
|
"openvino-ie-transformations-maintainers": "category: transformations",
|
||||||
"openvino-ie-python-api-maintainers": "category: python api",
|
"openvino-ie-auto-multi-maintainers": "category: AUTO",
|
||||||
|
"openvino-auto-batch-maintainers": "category: AUTO BATCH",
|
||||||
|
"openvino-hetero-maintainers": "category: HETERO",
|
||||||
|
"openvino-ie-python-api-maintainers": "category: Python API",
|
||||||
"openvino-ie-template-maintainers": "category: TEMPLATE",
|
"openvino-ie-template-maintainers": "category: TEMPLATE",
|
||||||
|
"openvino-ir-frontend-maintainers": "category: IR FE",
|
||||||
|
"openvino-ie-paddle-maintainers": "category: PDPD FE",
|
||||||
|
"openvino-tf-frontend-maintainers": "category: TF FE",
|
||||||
|
"openvino-onnx-frontend-maintainers": "category: ONNX FE",
|
||||||
"openvino-ie-tests-maintainers": "category: IE Tests",
|
"openvino-ie-tests-maintainers": "category: IE Tests",
|
||||||
"openvino-ie-vpu-maintainers": "category: VPU",
|
"openvino-ie-vpu-maintainers": "category: VPU",
|
||||||
"openvino-mo-maintainers": "category: MO",
|
"openvino-mo-maintainers": "category: MO",
|
||||||
"openvino-ngraph-maintainers": "category: nGraph",
|
"openvino-ngraph-maintainers": "category: Core",
|
||||||
"openvino-scripts-maintainers": "category: build",
|
"openvino-scripts-maintainers": "category: build",
|
||||||
"openvino-tests-maintainers": "category: IE Tests",
|
"openvino-tests-maintainers": "category: IE Tests",
|
||||||
"openvino-tools-maintainers": "category: tools",
|
"openvino-tools-maintainers": "category: tools",
|
||||||
"openvino-pot-maintainers": "category: POT",
|
"openvino-pot-maintainers": "category: POT",
|
||||||
"openvino-configuration-mgmt": "category: dependency_changes",
|
"openvino-configuration-mgmt": "category: dependency_changes",
|
||||||
"openvino-samples-maintainers": "category: samples"
|
"openvino-samples-maintainers": "category: samples",
|
||||||
|
"openvino-c-api-maintainers": "category: C API"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
175
.github/workflows/build_doc.yml
vendored
175
.github/workflows/build_doc.yml
vendored
@ -1,5 +1,14 @@
|
|||||||
name: Documentation
|
name: Documentation
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
- 'releases/**'
|
||||||
|
|
||||||
|
env:
|
||||||
|
DOXY_VER: '1.9.2'
|
||||||
|
DOXYREST_VER: '2.1.3'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
@ -7,84 +16,47 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Build_Doc:
|
Build_Doc:
|
||||||
if: github.repository == 'openvinotoolkit/openvino'
|
runs-on: ubuntu-20.04
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clone OpenVINO
|
- name: Clone OpenVINO
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
lfs: true
|
lfs: true
|
||||||
|
|
||||||
# cache from ccache
|
- name: Install apt-get dependencies
|
||||||
- name: Cache ccache
|
|
||||||
id: cache_restore
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: .ccache
|
|
||||||
key: doc-ccache-cache
|
|
||||||
|
|
||||||
- name: Install ccache
|
|
||||||
uses: hendrikmuhs/ccache-action@v1.2
|
|
||||||
with:
|
|
||||||
key: doc-ccache-cache
|
|
||||||
save: false
|
|
||||||
|
|
||||||
# cache from doxygen build
|
|
||||||
- name: Cache doxygen make
|
|
||||||
id: cache_doxygen_make
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: doxygen-build
|
|
||||||
key: build-doxygen-cache
|
|
||||||
|
|
||||||
# cache from python packages
|
|
||||||
- name: Cache python requirements
|
|
||||||
id: cache_python_requirements
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: ~/.cache/pip
|
|
||||||
key: doc-python-requirements
|
|
||||||
|
|
||||||
- name: Install apt-get tools
|
|
||||||
uses: awalsh128/cache-apt-pkgs-action@v1.1.3
|
uses: awalsh128/cache-apt-pkgs-action@v1.1.3
|
||||||
# install doc dependencies
|
|
||||||
with:
|
with:
|
||||||
packages: graphviz texlive liblua5.2-0
|
packages: graphviz texlive liblua5.2-0 libclang1-9 libclang-cpp9
|
||||||
version: 3.0
|
version: 3.0
|
||||||
|
|
||||||
- name: Install dependencies
|
- uses: actions/setup-python@v4
|
||||||
run: |
|
id: cp310
|
||||||
set -e
|
with:
|
||||||
python3 -m pip install -r docs/requirements.txt --user
|
python-version: '3.10'
|
||||||
cd docs/openvino_sphinx_theme
|
cache: 'pip'
|
||||||
python3 setup.py install --user
|
cache-dependency-path: |
|
||||||
cd ../..
|
docs/requirements.txt
|
||||||
# install doxyrest
|
docs/openvino_sphinx_theme/setup.py
|
||||||
wget https://github.com/vovkos/doxyrest/releases/download/doxyrest-2.1.3/doxyrest-2.1.3-linux-amd64.tar.xz
|
|
||||||
tar -xf doxyrest-2.1.3-linux-amd64.tar.xz
|
|
||||||
echo "$(pwd)/doxyrest-2.1.3-linux-amd64/bin/" >> $GITHUB_PATH
|
|
||||||
# install doxygen
|
|
||||||
mkdir doxygen
|
|
||||||
cd doxygen
|
|
||||||
git clone --depth 1 https://github.com/doxygen/doxygen.git -b Release_1_9_2
|
|
||||||
cmake \
|
|
||||||
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
|
|
||||||
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
|
|
||||||
-S doxygen \
|
|
||||||
-B ../doxygen-build
|
|
||||||
cmake --build ../doxygen-build -j`nproc`
|
|
||||||
sudo cmake --build ../doxygen-build --target install
|
|
||||||
|
|
||||||
- name: CMake doc
|
- name: Install python dependencies
|
||||||
run: |
|
run: |
|
||||||
cmake \
|
python3 -m pip install -r docs/requirements.txt
|
||||||
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
|
(cd docs/openvino_sphinx_theme && python3 setup.py install)
|
||||||
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
|
|
||||||
-DENABLE_INTEL_MYRIAD_COMMON=OFF \
|
- name: Download and install doxygen && doxyrest
|
||||||
-DENABLE_DOCS=ON \
|
run: |
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
# install doxyrest
|
||||||
-B build
|
wget https://github.com/vovkos/doxyrest/releases/download/doxyrest-$DOXYREST_VER/doxyrest-$DOXYREST_VER-linux-amd64.tar.xz
|
||||||
|
tar -xf doxyrest-$DOXYREST_VER-linux-amd64.tar.xz
|
||||||
|
echo "$(pwd)/doxyrest-$DOXYREST_VER-linux-amd64/bin/" >> $GITHUB_PATH
|
||||||
|
# install doxygen
|
||||||
|
wget https://sourceforge.net/projects/doxygen/files/rel-$DOXY_VER/doxygen-$DOXY_VER.linux.bin.tar.gz
|
||||||
|
tar -xzf doxygen-$DOXY_VER.linux.bin.tar.gz
|
||||||
|
echo "$(pwd)/doxygen-$DOXY_VER/bin/" >> $GITHUB_PATH
|
||||||
|
|
||||||
|
- name: CMake configure
|
||||||
|
run: cmake -DENABLE_INTEL_MYRIAD_COMMON=OFF -DENABLE_DOCS=ON -B build
|
||||||
|
|
||||||
- name: Cache documentation
|
- name: Cache documentation
|
||||||
id: cache_sphinx_docs
|
id: cache_sphinx_docs
|
||||||
@ -92,16 +64,40 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: build/docs/_build/.doctrees
|
path: build/docs/_build/.doctrees
|
||||||
key: sphinx-docs-cache
|
key: sphinx-docs-cache
|
||||||
|
|
||||||
- name: Build doc
|
- name: Get number of CPU cores
|
||||||
|
uses: SimenB/github-actions-cpu-cores@v1
|
||||||
|
id: cpu-cores
|
||||||
|
|
||||||
|
- name: Build docs
|
||||||
|
run: cmake --build build --target sphinx_docs --parallel ${{ steps.cpu-cores.outputs.count }}
|
||||||
|
|
||||||
|
- name: Archive docs HTML
|
||||||
|
run: (cd build/docs && zip -r openvino_docs_html.zip _build)
|
||||||
|
|
||||||
|
- name: Set PR number
|
||||||
run: |
|
run: |
|
||||||
cmake --build build --target sphinx_docs -j`nproc`
|
PR_NUMBER=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')
|
||||||
|
echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_ENV
|
||||||
- name: Archive HTML
|
|
||||||
run: |
|
- name: 'Upload doxygen.log'
|
||||||
zip -r openvino_html.zip _build
|
uses: actions/upload-artifact@v3
|
||||||
working-directory: build/docs
|
with:
|
||||||
|
name: doxygen_build_log_${{ env.PR_NUMBER }}.log
|
||||||
|
path: build/docs/doxygen.log
|
||||||
|
|
||||||
|
- name: 'Upload sphinx.log'
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: sphinx_build_log_${{ env.PR_NUMBER }}.log
|
||||||
|
path: build/docs/sphinx.log
|
||||||
|
|
||||||
|
- name: 'Upload docs html'
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: openvino_docs_html_${{ env.PR_NUMBER }}.zip
|
||||||
|
path: build/docs/openvino_docs_html.zip
|
||||||
|
|
||||||
- name: Run Pytest
|
- name: Run Pytest
|
||||||
run: |
|
run: |
|
||||||
pytest --doxygen="./build/docs/doxygen.log" \
|
pytest --doxygen="./build/docs/doxygen.log" \
|
||||||
@ -116,29 +112,8 @@ jobs:
|
|||||||
--self-contained-html ./docs/scripts/tests/test_docs.py
|
--self-contained-html ./docs/scripts/tests/test_docs.py
|
||||||
|
|
||||||
- name: 'Upload test results'
|
- name: 'Upload test results'
|
||||||
if: always()
|
if: failure()
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: openvino_doc_pytest
|
name: openvino_docs_pytest
|
||||||
path: build/docs/_artifacts/
|
path: build/docs/_artifacts/
|
||||||
|
|
||||||
- name: 'Upload doxygen.log'
|
|
||||||
if: always()
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: doxygen_log
|
|
||||||
path: build/docs/doxygen.log
|
|
||||||
|
|
||||||
- name: 'Upload sphinx.log'
|
|
||||||
if: always()
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: sphinx_log
|
|
||||||
path: build/docs/sphinx.log
|
|
||||||
|
|
||||||
- name: 'Upload html'
|
|
||||||
if: always()
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: openvino_html
|
|
||||||
path: build/docs/openvino_html.zip
|
|
||||||
|
6
.github/workflows/check_pr_commits.yml
vendored
6
.github/workflows/check_pr_commits.yml
vendored
@ -1,16 +1,12 @@
|
|||||||
name: PR Commits
|
name: PR Commits
|
||||||
on: [pull_request]
|
on: [pull_request]
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Checks:
|
Checks:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Clone OpenVINO
|
- name: Clone OpenVINO
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: python3 -m pip install -r ./.github/github_org_control/requirements.txt
|
run: python3 -m pip install -r ./.github/github_org_control/requirements.txt
|
||||||
|
21
.github/workflows/code_snippets.yml
vendored
21
.github/workflows/code_snippets.yml
vendored
@ -4,6 +4,9 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- '.github/workflows/code_snippets.yml'
|
- '.github/workflows/code_snippets.yml'
|
||||||
- 'docs/snippets/**'
|
- 'docs/snippets/**'
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
- 'releases/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/code_snippets.yml'
|
- '.github/workflows/code_snippets.yml'
|
||||||
@ -22,27 +25,17 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Clone OpenVINO
|
- name: Clone OpenVINO
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
lfs: true
|
lfs: true
|
||||||
|
|
||||||
- name: Check cmake
|
- name: CMake configure
|
||||||
run: |
|
run: cmake -DENABLE_INTEL_MYRIAD_COMMON=OFF -DCMAKE_BUILD_TYPE=Release -B build
|
||||||
which cmake
|
|
||||||
cmake --version
|
|
||||||
|
|
||||||
- name: CMake
|
|
||||||
run: |
|
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
cmake -DENABLE_INTEL_MYRIAD_COMMON=OFF -DCMAKE_BUILD_TYPE=Release ..
|
|
||||||
|
|
||||||
- name: Get number of CPU cores
|
- name: Get number of CPU cores
|
||||||
uses: SimenB/github-actions-cpu-cores@v1
|
uses: SimenB/github-actions-cpu-cores@v1
|
||||||
id: cpu-cores
|
id: cpu-cores
|
||||||
|
|
||||||
- name: Build snippets
|
- name: Build snippets
|
||||||
run: |
|
run: cmake --build build --target ie_docs_snippets --parallel ${{ steps.cpu-cores.outputs.count }}
|
||||||
cmake --build . --target ie_docs_snippets -j${{ steps.cpu-cores.outputs.count }}
|
|
||||||
working-directory: build
|
|
||||||
|
47
.github/workflows/code_style.yml
vendored
47
.github/workflows/code_style.yml
vendored
@ -1,5 +1,10 @@
|
|||||||
name: Code Style
|
name: Code Style
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
- 'releases/**'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
@ -9,7 +14,7 @@ jobs:
|
|||||||
clang-format:
|
clang-format:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
@ -28,15 +33,12 @@ jobs:
|
|||||||
python3 -m pip install -r ./src/bindings/python/src/compatibility/openvino/requirements-dev.txt
|
python3 -m pip install -r ./src/bindings/python/src/compatibility/openvino/requirements-dev.txt
|
||||||
|
|
||||||
# Run cmake with -DENABLE_PROFILING_ITT=ON -DSELECTIVE_BUILD=COLLECT in order to enable codestyle check for ITT collector
|
# Run cmake with -DENABLE_PROFILING_ITT=ON -DSELECTIVE_BUILD=COLLECT in order to enable codestyle check for ITT collector
|
||||||
- name: CMake
|
- name: CMake configure
|
||||||
run: |
|
run: |
|
||||||
mkdir build
|
cmake -DENABLE_PYTHON=ON -DENABLE_TESTS=ON -DENABLE_PROFILING_ITT=ON -DSELECTIVE_BUILD=COLLECT -B build
|
||||||
cd build
|
|
||||||
cmake -DENABLE_PYTHON=ON -DENABLE_TESTS=ON -DENABLE_PROFILING_ITT=ON -DSELECTIVE_BUILD=COLLECT ..
|
|
||||||
|
|
||||||
- name: Check code style
|
- name: Check code style
|
||||||
run: cmake --build . --target clang_format_check_all -j8
|
run: cmake --build build --target clang_format_check_all -j8
|
||||||
working-directory: build
|
|
||||||
|
|
||||||
- name: Create code style diff
|
- name: Create code style diff
|
||||||
if: failure()
|
if: failure()
|
||||||
@ -51,7 +53,7 @@ jobs:
|
|||||||
level: error
|
level: error
|
||||||
tool_name: clang-format
|
tool_name: clang-format
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v3
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: code_style_diff
|
name: code_style_diff
|
||||||
@ -60,7 +62,7 @@ jobs:
|
|||||||
ShellCheck:
|
ShellCheck:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
@ -69,23 +71,16 @@ jobs:
|
|||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt --assume-yes install shellcheck
|
sudo apt --assume-yes install shellcheck
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: CMake configure
|
||||||
run: python3 -m pip install -r ./src/bindings/python/requirements.txt
|
run: cmake -DENABLE_INTEL_MYRIAD_COMMON=OFF -B build
|
||||||
|
|
||||||
- name: CMake
|
|
||||||
run: |
|
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
cmake -DENABLE_INTEL_MYRIAD_COMMON=OFF ..
|
|
||||||
|
|
||||||
- name: ShellCheck
|
- name: ShellCheck
|
||||||
run: cmake --build . --target ie_shellcheck -j8
|
run: cmake --build build --target ie_shellcheck -j8
|
||||||
working-directory: build
|
|
||||||
|
|
||||||
NamingConventionCheck:
|
NamingConventionCheck:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
@ -98,12 +93,8 @@ jobs:
|
|||||||
- name: Install Python-based dependencies
|
- name: Install Python-based dependencies
|
||||||
run: python3 -m pip install -r cmake/developer_package/ncc_naming_style/requirements_dev.txt
|
run: python3 -m pip install -r cmake/developer_package/ncc_naming_style/requirements_dev.txt
|
||||||
|
|
||||||
- name: CMake
|
- name: CMake configure
|
||||||
run: |
|
run: cmake -DENABLE_INTEL_MYRIAD_COMMON=OFF -B build
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
cmake -DENABLE_INTEL_MYRIAD_COMMON=OFF ..
|
|
||||||
|
|
||||||
- name: Naming convention check
|
- name: Naming convention check
|
||||||
run: cmake --build . --target ncc_all -j8
|
run: cmake --build build --target ncc_all -j8
|
||||||
working-directory: build
|
|
||||||
|
9
.github/workflows/files_size.yml
vendored
9
.github/workflows/files_size.yml
vendored
@ -9,13 +9,10 @@ jobs:
|
|||||||
Check_Files_Size:
|
Check_Files_Size:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: git ls-tree
|
- name: git ls-tree
|
||||||
run: |
|
run: git ls-tree -r -t -l --full-name HEAD | sort -n -r -k 4
|
||||||
git ls-tree -r -t -l --full-name HEAD | sort -n -r -k 4
|
|
||||||
|
|
||||||
- name: git lfs ls-files
|
- name: git lfs ls-files
|
||||||
run: |
|
run: git lfs ls-files --size
|
||||||
git lfs ls-files --size
|
|
||||||
|
|
||||||
|
24
.github/workflows/mo.yml
vendored
24
.github/workflows/mo.yml
vendored
@ -3,9 +3,14 @@ on:
|
|||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- 'openvino/tools/mo/**'
|
- 'openvino/tools/mo/**'
|
||||||
|
- '.github/workflows/mo.py'
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
- 'releases/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'openvino/tools/mo/**'
|
- 'openvino/tools/mo/**'
|
||||||
|
- '.github/workflows/mo.py'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
@ -15,12 +20,12 @@ jobs:
|
|||||||
Pylint-UT:
|
Pylint-UT:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Setup Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: 3.7
|
python-version: 3.7
|
||||||
|
|
||||||
@ -33,9 +38,9 @@ jobs:
|
|||||||
${{ runner.os }}-pip-
|
${{ runner.os }}-pip-
|
||||||
${{ runner.os }}-
|
${{ runner.os }}-
|
||||||
|
|
||||||
# tensorflow 1.15 causes modules import
|
# tensorflow 1.15 causes modules import
|
||||||
# errors, most likely due to https://github.com/PyCQA/pylint/issues/2603
|
# errors, most likely due to https://github.com/PyCQA/pylint/issues/2603
|
||||||
# for tensorflow.core.framework and tensorflow.contrib
|
# for tensorflow.core.framework and tensorflow.contrib
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip setuptools
|
python -m pip install --upgrade pip setuptools
|
||||||
@ -53,11 +58,8 @@ jobs:
|
|||||||
run: pylint -d C,R,W openvino/tools/mo/ openvino/tools/mo/mo.py
|
run: pylint -d C,R,W openvino/tools/mo/ openvino/tools/mo/mo.py
|
||||||
working-directory: openvino/tools/mo
|
working-directory: openvino/tools/mo
|
||||||
|
|
||||||
- name: CMake
|
- name: CMake configure
|
||||||
run: |
|
run: cmake -B build
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
cmake ..
|
|
||||||
|
|
||||||
- name: UT
|
- name: UT
|
||||||
run: |
|
run: |
|
||||||
|
40
.github/workflows/py_checks.yml
vendored
40
.github/workflows/py_checks.yml
vendored
@ -7,6 +7,9 @@ on:
|
|||||||
- 'src/bindings/python/**'
|
- 'src/bindings/python/**'
|
||||||
- 'samples/python/**'
|
- 'samples/python/**'
|
||||||
- '.github/workflows/py_checks.yml'
|
- '.github/workflows/py_checks.yml'
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
- 'releases/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'src/bindings/python/**'
|
- 'src/bindings/python/**'
|
||||||
@ -22,103 +25,124 @@ jobs:
|
|||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Code checkout
|
- name: Code checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v2
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.7'
|
python-version: '3.7'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: python -m pip install -r src/bindings/python/requirements_test.txt
|
run: python -m pip install -r src/bindings/python/requirements_test.txt
|
||||||
|
|
||||||
# samples code-style
|
# samples code-style
|
||||||
- name: Run flake8 on samples
|
- name: Run flake8 on samples
|
||||||
run: python -m flake8 ./ --config=setup.cfg
|
run: python -m flake8 ./ --config=setup.cfg
|
||||||
working-directory: samples/python
|
working-directory: samples/python
|
||||||
|
|
||||||
- name: Create code style diff for samples
|
- name: Create code style diff for samples
|
||||||
if: failure()
|
if: failure()
|
||||||
run: |
|
run: |
|
||||||
python -m black -l 160 -S ./
|
python -m black -l 160 -S ./
|
||||||
git diff > samples_diff.diff
|
git diff > samples_diff.diff
|
||||||
working-directory: samples/python
|
working-directory: samples/python
|
||||||
- uses: actions/upload-artifact@v2
|
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: samples_diff
|
name: samples_diff
|
||||||
path: samples_diff.diff
|
path: samples_diff.diff
|
||||||
|
|
||||||
# IE Python API Flake code-style
|
# IE Python API Flake code-style
|
||||||
- name: Run flake8 on IE Python API
|
- name: Run flake8 on IE Python API
|
||||||
run: python -m flake8 ./ --config=setup.cfg
|
run: python -m flake8 ./ --config=setup.cfg
|
||||||
working-directory: src/bindings/python/src/compatibility/openvino
|
working-directory: src/bindings/python/src/compatibility/openvino
|
||||||
|
|
||||||
- name: Create code style diff for IE Python API
|
- name: Create code style diff for IE Python API
|
||||||
if: failure()
|
if: failure()
|
||||||
run: |
|
run: |
|
||||||
python -m black -l 160 -S ./
|
python -m black -l 160 -S ./
|
||||||
git diff > ie_python_diff.diff
|
git diff > ie_python_diff.diff
|
||||||
working-directory: src/bindings/python/src/compatibility/openvino
|
working-directory: src/bindings/python/src/compatibility/openvino
|
||||||
- uses: actions/upload-artifact@v2
|
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: ie_python_diff
|
name: ie_python_diff
|
||||||
path: ie_python_diff.diff
|
path: ie_python_diff.diff
|
||||||
|
|
||||||
# nGraph Python API Flake code-style
|
# nGraph Python API Flake code-style
|
||||||
- name: Run flake8 on nGraph Python API
|
- name: Run flake8 on nGraph Python API
|
||||||
run: python -m flake8 ./src/compatibility/ngraph --config=setup.cfg
|
run: python -m flake8 ./src/compatibility/ngraph --config=setup.cfg
|
||||||
working-directory: src/bindings/python
|
working-directory: src/bindings/python
|
||||||
|
|
||||||
- name: Create code style diff for nGraph Python API
|
- name: Create code style diff for nGraph Python API
|
||||||
if: failure()
|
if: failure()
|
||||||
run: |
|
run: |
|
||||||
python -m black -l 160 -S ./
|
python -m black -l 160 -S ./
|
||||||
git diff > pyngraph_diff.diff
|
git diff > pyngraph_diff.diff
|
||||||
working-directory: src/bindings/python/src/compatibility/ngraph
|
working-directory: src/bindings/python/src/compatibility/ngraph
|
||||||
- uses: actions/upload-artifact@v2
|
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: pyngraph_diff
|
name: pyngraph_diff
|
||||||
path: pyngraph_diff.diff
|
path: pyngraph_diff.diff
|
||||||
|
|
||||||
# Python API 2.0 Flake code-style
|
# Python API 2.0 Flake code-style
|
||||||
- name: Run flake8 on Python API 2.0
|
- name: Run flake8 on Python API 2.0
|
||||||
run: python -m flake8 ./src/openvino --config=setup.cfg
|
run: python -m flake8 ./src/openvino --config=setup.cfg
|
||||||
working-directory: src/bindings/python
|
working-directory: src/bindings/python
|
||||||
|
|
||||||
- name: Create code style diff for Python API 2.0
|
- name: Create code style diff for Python API 2.0
|
||||||
if: failure()
|
if: failure()
|
||||||
run: |
|
run: |
|
||||||
python -m black -l 160 -S ./
|
python -m black -l 160 -S ./
|
||||||
git diff > pyopenvino_diff.diff
|
git diff > pyopenvino_diff.diff
|
||||||
working-directory: src/bindings/python/src/openvino
|
working-directory: src/bindings/python/src/openvino
|
||||||
- uses: actions/upload-artifact@v2
|
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: pyopenvino_diff
|
name: pyopenvino_diff
|
||||||
path: pyopenvino_diff.diff
|
path: pyopenvino_diff.diff
|
||||||
|
|
||||||
# wheel Flake code-style
|
# wheel Flake code-style
|
||||||
- name: Run flake8 on wheel
|
- name: Run flake8 on wheel
|
||||||
run: python -m flake8 ./ --config=../setup.cfg
|
run: python -m flake8 ./ --config=../setup.cfg
|
||||||
working-directory: src/bindings/python/wheel
|
working-directory: src/bindings/python/wheel
|
||||||
|
|
||||||
- name: Create code style diff for wheel
|
- name: Create code style diff for wheel
|
||||||
if: failure()
|
if: failure()
|
||||||
run: |
|
run: |
|
||||||
python -m black -l 160 -S ./
|
python -m black -l 160 -S ./
|
||||||
git diff > wheel_diff.diff
|
git diff > wheel_diff.diff
|
||||||
working-directory: src/bindings/python/wheel
|
working-directory: src/bindings/python/wheel
|
||||||
- uses: actions/upload-artifact@v2
|
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: wheel_diff
|
name: wheel_diff
|
||||||
path: wheel_diff.diff
|
path: wheel_diff.diff
|
||||||
|
|
||||||
# Python API 2.0 tests Flake code-style
|
# Python API 2.0 tests Flake code-style
|
||||||
- name: Run flake8 on python tests
|
- name: Run flake8 on python tests
|
||||||
# ignore lack of docs in tests
|
# ignore lack of docs in tests
|
||||||
run: python -m flake8 tests/ --config=setup.cfg
|
run: python -m flake8 tests/ --config=setup.cfg
|
||||||
working-directory: src/bindings/python
|
working-directory: src/bindings/python
|
||||||
|
|
||||||
# IE Python API mypy check
|
# IE Python API mypy check
|
||||||
- name: Run mypy on IE Python API
|
- name: Run mypy on IE Python API
|
||||||
run: python -m mypy ./ --config-file ./setup.cfg
|
run: python -m mypy ./ --config-file ./setup.cfg
|
||||||
working-directory: src/bindings/python/src/compatibility/openvino
|
working-directory: src/bindings/python/src/compatibility/openvino
|
||||||
|
|
||||||
# nGraph Python API mypy check
|
# nGraph Python API mypy check
|
||||||
- name: Run mypy on nGraph Python API
|
- name: Run mypy on nGraph Python API
|
||||||
run: python -m mypy ./src/compatibility/ngraph --config-file ./setup.cfg
|
run: python -m mypy ./src/compatibility/ngraph --config-file ./setup.cfg
|
||||||
working-directory: src/bindings/python
|
working-directory: src/bindings/python
|
||||||
|
|
||||||
# Python API 2.0 mypy check
|
# Python API 2.0 mypy check
|
||||||
- name: Run mypy on Python API 2.0
|
- name: Run mypy on Python API 2.0
|
||||||
run: python -m mypy ./src/openvino --config-file ./setup.cfg
|
run: python -m mypy ./src/openvino --config-file ./setup.cfg
|
||||||
|
@ -126,8 +126,8 @@ function(build_docs)
|
|||||||
get_filename_component(OVMS_DOCS_DIR "${OVMS_DOCS_DIR}" ABSOLUTE)
|
get_filename_component(OVMS_DOCS_DIR "${OVMS_DOCS_DIR}" ABSOLUTE)
|
||||||
|
|
||||||
list(APPEND commands COMMAND ${PYTHON_EXECUTABLE} ${DOXY_MD_FILTER}
|
list(APPEND commands COMMAND ${PYTHON_EXECUTABLE} ${DOXY_MD_FILTER}
|
||||||
--input_dir=${OVMS_DOCS_DIR}
|
--input_dir=${OVMS_DOCS_DIR}
|
||||||
--output_dir=${DOCS_BUILD_DIR}/ovms)
|
--output_dir=${DOCS_BUILD_DIR}/ovms)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_custom_target(preprocess_docs
|
add_custom_target(preprocess_docs
|
||||||
|
@ -28,7 +28,3 @@ This section describes the how to obtain and prepare your model for work with Op
|
|||||||
* [Automate model-related tasks with Model Downloader and additional OMZ Tools](https://docs.openvino.ai/latest/omz_tools_downloader.html).
|
* [Automate model-related tasks with Model Downloader and additional OMZ Tools](https://docs.openvino.ai/latest/omz_tools_downloader.html).
|
||||||
|
|
||||||
To begin with, you may want to [browse a database of models for use in your projects](../model_zoo.md).
|
To begin with, you may want to [browse a database of models for use in your projects](../model_zoo.md).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user