From 491454103ea2f29b242587c6084c19868a879a82 Mon Sep 17 00:00:00 2001 From: Anastasia Kuporosova Date: Wed, 18 Oct 2023 17:23:52 +0300 Subject: [PATCH] [Docs] fix failure of python snippet (#20516) * [Docs] fix failure of python snippet * trigger python snippets * fix ga * Update .github/workflows/linux.yml Co-authored-by: Mikhail Ryzhov * Update .github/workflows/linux.yml Co-authored-by: Mikhail Ryzhov * return back fix --------- Co-authored-by: Chen Peter Co-authored-by: Mikhail Ryzhov --- .github/workflows/linux.yml | 24 ++++++++++++++---------- docs/snippets/ov_auto.py | 3 +-- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 59e021e24eb153..733dfed4c09d14 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -5,17 +5,21 @@ on: - cron: '0 0 * * 3,6' workflow_dispatch: pull_request: - paths-ignore: - - '**/docs/**' - - 'docs/**' - - '**/**.md' - - '**.md' + paths: + - '**' + - '!**/docs/**' + - '!docs/**' + - 'docs/snippets/**' + - '!**/**.md' + - '!**.md' push: - paths-ignore: - - '**/docs/**' - - 'docs/**' - - '**/**.md' - - '**.md' + paths: + - '**' + - '!docs/**' + - '!**/docs/**' + - 'docs/snippets/**' + - '!**/**.md' + - '!**.md' branches: - master - 'releases/**' diff --git a/docs/snippets/ov_auto.py b/docs/snippets/ov_auto.py index 8c2721a355d1b3..47d8d877ecda24 100644 --- a/docs/snippets/ov_auto.py +++ b/docs/snippets/ov_auto.py @@ -8,7 +8,6 @@ import openvino.properties.device as device import openvino.properties.hint as hints import openvino.properties.streams as streams -import openvino.properties.enable_profiling as enable_profiling #! [py_ov_property_import_header] import openvino.properties.log as log @@ -167,7 +166,7 @@ def part5(): cpu_config = { hints.performance_mode: hints.PerformanceMode.LATENCY, streams.num: 8, - enable_profiling: True + properties.enable_profiling: True } compiled_model = core.compile_model( model=model,