Skip to content

Commit

Permalink
disable snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
akuporos committed Nov 12, 2024
1 parent 72bfe73 commit 4ac1cae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/job_python_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,14 +306,14 @@ jobs:
path: ${{ env.OPENVINO_REPO }}
submodules: 'false'

- name: Docs Python snippets
if: runner.os != 'macOS'
run: |
# to find 'snippets' module in docs
export PYTHONPATH=${OPENVINO_REPO}/docs
# for 'template' extension
export LD_LIBRARY_PATH=${INSTALL_TEST_DIR}:$LD_LIBRARY_PATH
python3 ${OPENVINO_REPO}/docs/snippets/main.py
# - name: Docs Python snippets
# if: runner.os != 'macOS'
# run: |
# # to find 'snippets' module in docs
# export PYTHONPATH=${OPENVINO_REPO}/docs
# # for 'template' extension
# export LD_LIBRARY_PATH=${INSTALL_TEST_DIR}:$LD_LIBRARY_PATH
# python3 ${OPENVINO_REPO}/docs/snippets/main.py

- name: Upload Test Results
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from contextlib import redirect_stdout, redirect_stderr


skip_snippets = ["main.py", "__init__.py", "utils.py", "ie_common.py", "ov_common.py", "ov_dynamic_shapes.py", "ov_auto.py"]
skip_snippets = ["main.py", "__init__.py", "utils.py", "ie_common.py", "ov_common.py"]

def import_python_modules(directory, subdirectory=""):
for item in os.listdir(directory):
Expand Down

0 comments on commit 4ac1cae

Please sign in to comment.