From 8d808d669fa19823bbfa7e8e2ae86b4ab9a55b60 Mon Sep 17 00:00:00 2001 From: Alexander Suvorov Date: Thu, 27 Jun 2024 16:38:38 +0200 Subject: [PATCH 01/11] Use python 3.12 --- .github/workflows/genai_python_lib.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/genai_python_lib.yml b/.github/workflows/genai_python_lib.yml index 72377a4b16..b77206c71e 100644 --- a/.github/workflows/genai_python_lib.yml +++ b/.github/workflows/genai_python_lib.yml @@ -55,7 +55,6 @@ jobs: - run: python -m pytest ./tests/python_tests/test_generate_api.py -m precommit windows_genai_python_lib: - if: false runs-on: windows-latest env: CMAKE_BUILD_PARALLEL_LEVEL: null @@ -68,7 +67,7 @@ jobs: submodules: recursive - uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: 3.12 - run: curl --output ov.zip https://storage.openvinotoolkit.org/repositories/openvino/packages/pre-release/2024.2.0rc2/windows/w_openvino_toolkit_windows_2024.2.0.dev20240529_x86_64.zip - run: unzip ov.zip # Shorten the next setupvars calls. @@ -77,6 +76,6 @@ jobs: - run: call ./ov/setupvars.bat && cmake --build ./build/ --config Release -j - run: call ./ov/setupvars.bat && python -m pip install ./thirdparty/openvino_tokenizers/[transformers] -r ./tests/python_tests/requirements.txt --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/pre-release --upgrade-strategy eager # cmd evaluates variables in a different way. Setting PYTHONPATH before setupvars.bat instead of doing that after solves that. - - run: set "PYTHONPATH=./build/" && call ./ov/setupvars.bat && python -m pytest ./tests/python_tests/test_generate_api.py -m precommit + - run: set "PYTHONPATH=.\build\" && call ./ov/setupvars.bat && python -m pytest ./tests/python_tests/test_generate_api.py -m precommit - run: call ./ov/setupvars.bat && python -m pip install . --verbose - run: python -m pytest ./tests/python_tests/test_generate_api.py -m precommit From b512e009e5ce1b020d7561e93163e473d596852d Mon Sep 17 00:00:00 2001 From: Alexander Suvorov Date: Thu, 27 Jun 2024 16:40:27 +0200 Subject: [PATCH 02/11] Disable tests --- .github/workflows/genai_python_lib.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/genai_python_lib.yml b/.github/workflows/genai_python_lib.yml index b77206c71e..63cb65c77e 100644 --- a/.github/workflows/genai_python_lib.yml +++ b/.github/workflows/genai_python_lib.yml @@ -6,6 +6,7 @@ concurrency: cancel-in-progress: true jobs: ubuntu_genai_python_lib: + if: false # A tokenizers' dependency fails to compile on ubuntu-20 n CenOS7 env. runs-on: ubuntu-22.04 env: @@ -31,6 +32,7 @@ jobs: - run: python -m pytest ./tests/python_tests/test_generate_api.py -m precommit macos_genai_python_lib: + if: false runs-on: macos-12 env: # A tokenizers' dependency fails to compile with Ninja. From c5d5781eabcff5caa9dcd3a6803f4d723c8a679d Mon Sep 17 00:00:00 2001 From: Alexander Suvorov Date: Fri, 28 Jun 2024 09:42:07 +0200 Subject: [PATCH 03/11] Use 2019 studio --- .github/workflows/genai_python_lib.yml | 2 +- tests/python_tests/test_generate_api.py | 46 ++++++++++++------------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/genai_python_lib.yml b/.github/workflows/genai_python_lib.yml index 63cb65c77e..77eab4b99e 100644 --- a/.github/workflows/genai_python_lib.yml +++ b/.github/workflows/genai_python_lib.yml @@ -57,7 +57,7 @@ jobs: - run: python -m pytest ./tests/python_tests/test_generate_api.py -m precommit windows_genai_python_lib: - runs-on: windows-latest + runs-on: windows-2019 env: CMAKE_BUILD_PARALLEL_LEVEL: null defaults: diff --git a/tests/python_tests/test_generate_api.py b/tests/python_tests/test_generate_api.py index cc73d608e2..12638aa1f0 100644 --- a/tests/python_tests/test_generate_api.py +++ b/tests/python_tests/test_generate_api.py @@ -211,12 +211,12 @@ def test_decoding(model_descr, generation_config, prompt): ] @pytest.mark.parametrize("inputs", input_tensors_list) @pytest.mark.parametrize("model_descr", models_list()) -@pytest.mark.xfail( - raises=TypeError, - reason="pybind was unable to find overloads with tensor inputs on Linux", - strict=False, - condition=sys.platform == "linux" -) +# @pytest.mark.xfail( +# raises=TypeError, +# reason="pybind was unable to find overloads with tensor inputs on Linux", +# strict=False, +# condition=sys.platform == "linux" +# ) @pytest.mark.precommit def test_ov_tensors(model_descr, inputs): hf_ov_genai_tensors_comparison(read_model(model_descr), dict(max_new_tokens=20), *inputs) @@ -232,12 +232,12 @@ def test_ov_tensors(model_descr, inputs): @pytest.mark.parametrize("model_descr", models_list()) @pytest.mark.parametrize("prompt", prompts) @pytest.mark.precommit -@pytest.mark.xfail( - raises=TypeError, - reason="pybind was unable to find ov::Tensor from openvino yet", - strict=False, - condition=sys.platform in ["linux", "win32"] -) +# @pytest.mark.xfail( +# raises=TypeError, +# reason="pybind was unable to find ov::Tensor from openvino yet", +# strict=False, +# condition=sys.platform in ["linux", "win32"] +# ) def test_genai_tokenizer_encode(model_descr, prompt): model_id, path, tokenizer, model, pipe = read_model(model_descr) tok = pipe.get_tokenizer() @@ -267,12 +267,12 @@ def test_genai_tokenizer_encode(model_descr, prompt): @pytest.mark.parametrize("model_descr", models_list()) @pytest.mark.parametrize("encoded_prompt", encoded_prompts) @pytest.mark.precommit -@pytest.mark.xfail( - raises=TypeError, - reason="pybind was unable to find ov::Tensor from openvino yet", - strict=False, - condition=sys.platform in ["linux", "win32"] -) +# @pytest.mark.xfail( +# raises=TypeError, +# reason="pybind was unable to find ov::Tensor from openvino yet", +# strict=False, +# condition=sys.platform in ["linux", "win32"] +# ) def test_genai_tokenizer_decode(model_descr, encoded_prompt): model_id, path, tokenizer, model, pipe = read_model(model_descr) tok = pipe.get_tokenizer() @@ -618,11 +618,11 @@ def test_load_special_tokens_3(model_tmp_path): @pytest.mark.precommit -@pytest.mark.xfail( - raises=AssertionError, - reason="CVS-143410 ov tokenizer should be aligned with hf", - strict=False, -) +# @pytest.mark.xfail( +# raises=AssertionError, +# reason="CVS-143410 ov tokenizer should be aligned with hf", +# strict=False, +# ) def test_load_special_tokens_4(model_tmp_path): # only string representation is provided, find token integers by inference model_id, temp_path = model_tmp_path From 51f5ce39fd1f4f75ef77d660e79af0b42c91a6a6 Mon Sep 17 00:00:00 2001 From: Alexander Suvorov Date: Fri, 28 Jun 2024 10:03:16 +0200 Subject: [PATCH 04/11] Fix merge --- thirdparty/openvino_tokenizers | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thirdparty/openvino_tokenizers b/thirdparty/openvino_tokenizers index e5cb83bc4f..880d569cd2 160000 --- a/thirdparty/openvino_tokenizers +++ b/thirdparty/openvino_tokenizers @@ -1 +1 @@ -Subproject commit e5cb83bc4fd246014f5d4cb0dfb6e2a3d1343dc3 +Subproject commit 880d569cd2f5d52165b940542e2f9190172ed2cb From 8493155a142403c3d311b28ccb50669c39db0c1e Mon Sep 17 00:00:00 2001 From: Alexander Suvorov Date: Fri, 28 Jun 2024 10:08:11 +0200 Subject: [PATCH 05/11] Fix link --- .github/workflows/genai_python_lib.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/genai_python_lib.yml b/.github/workflows/genai_python_lib.yml index e0d2f8cdd5..cadce6712a 100644 --- a/.github/workflows/genai_python_lib.yml +++ b/.github/workflows/genai_python_lib.yml @@ -74,7 +74,7 @@ jobs: - uses: actions/setup-python@v4 with: python-version: 3.12 - - run: curl --output ov.zip ${{ env.l_ov_link }} + - run: curl --output ov.zip ${{ env.w_ov_link }} - run: unzip -d ov ov.zip - run: dirs=(ov/*) && mv ov/*/* ov && rmdir "${dirs[@]}" shell: bash From 1b11284a582b401a2880c362c75bc320a677bb1d Mon Sep 17 00:00:00 2001 From: Alexander Suvorov Date: Fri, 28 Jun 2024 10:40:49 +0200 Subject: [PATCH 06/11] Use python 3.11 --- .github/workflows/genai_python_lib.yml | 6 +-- tests/python_tests/test_generate_api.py | 52 ++++++++++++++----------- 2 files changed, 31 insertions(+), 27 deletions(-) diff --git a/.github/workflows/genai_python_lib.yml b/.github/workflows/genai_python_lib.yml index cadce6712a..384c6a544a 100644 --- a/.github/workflows/genai_python_lib.yml +++ b/.github/workflows/genai_python_lib.yml @@ -10,7 +10,6 @@ env: w_ov_link: https://storage.openvinotoolkit.org/repositories/openvino/packages/nightly/2024.3.0-15805-6138d624dc1/w_openvino_toolkit_windows_2024.3.0.dev20240626_x86_64.zip jobs: ubuntu_genai_python_lib: - if: false # A tokenizers' dependency fails to compile on ubuntu-20 n CenOS7 env. runs-on: ubuntu-22.04 env: @@ -36,7 +35,6 @@ jobs: - run: python -m pytest ./tests/python_tests/test_generate_api.py -m precommit macos_genai_python_lib: - if: false runs-on: macos-12 env: # A tokenizers' dependency fails to compile with Ninja. @@ -61,7 +59,7 @@ jobs: - run: python -m pytest ./tests/python_tests/test_generate_api.py -m precommit windows_genai_python_lib: - runs-on: windows-2019 + runs-on: windows-latest env: CMAKE_BUILD_PARALLEL_LEVEL: null defaults: @@ -73,7 +71,7 @@ jobs: submodules: recursive - uses: actions/setup-python@v4 with: - python-version: 3.12 + python-version: 3.11 - run: curl --output ov.zip ${{ env.w_ov_link }} - run: unzip -d ov ov.zip - run: dirs=(ov/*) && mv ov/*/* ov && rmdir "${dirs[@]}" diff --git a/tests/python_tests/test_generate_api.py b/tests/python_tests/test_generate_api.py index 9a36425911..564f85f335 100644 --- a/tests/python_tests/test_generate_api.py +++ b/tests/python_tests/test_generate_api.py @@ -207,12 +207,15 @@ def test_decoding(model_descr, generation_config, prompt): ] @pytest.mark.parametrize("inputs", input_tensors_list) @pytest.mark.parametrize("model_descr", models_list()) -# @pytest.mark.xfail( -# raises=TypeError, -# reason="pybind was unable to find overloads with tensor inputs on Linux", -# strict=False, -# condition=sys.platform == "linux" -# ) +@pytest.mark.xfail( + raises=TypeError, + reason="pybind was unable to find overloads with tensor inputs on Linux and Widnows", + strict=False, + condition=sys.platform in [ + # "linux", + "win32" + ] +) @pytest.mark.precommit def test_ov_tensors(model_descr, inputs): hf_ov_genai_tensors_comparison(read_model(model_descr), dict(max_new_tokens=20), *inputs) @@ -228,12 +231,15 @@ def test_ov_tensors(model_descr, inputs): @pytest.mark.parametrize("model_descr", models_list()) @pytest.mark.parametrize("prompt", prompts) @pytest.mark.precommit -# @pytest.mark.xfail( -# raises=TypeError, -# reason="pybind was unable to find ov::Tensor from openvino yet", -# strict=False, -# condition=sys.platform in ["linux", "win32"] -# ) +@pytest.mark.xfail( + raises=TypeError, + reason="pybind was unable to find ov::Tensor from openvino yet", + strict=False, + condition=sys.platform in [ + # "linux", + "win32" + ] +) def test_genai_tokenizer_encode(model_descr, prompt): model_id, path, tokenizer, model, pipe = read_model(model_descr) tok = pipe.get_tokenizer() @@ -263,12 +269,12 @@ def test_genai_tokenizer_encode(model_descr, prompt): @pytest.mark.parametrize("model_descr", models_list()) @pytest.mark.parametrize("encoded_prompt", encoded_prompts) @pytest.mark.precommit -# @pytest.mark.xfail( -# raises=TypeError, -# reason="pybind was unable to find ov::Tensor from openvino yet", -# strict=False, -# condition=sys.platform in ["linux", "win32"] -# ) +@pytest.mark.xfail( + raises=TypeError, + reason="pybind was unable to find ov::Tensor from openvino yet", + strict=False, + condition=sys.platform in ["linux", "win32"] +) def test_genai_tokenizer_decode(model_descr, encoded_prompt): model_id, path, tokenizer, model, pipe = read_model(model_descr) tok = pipe.get_tokenizer() @@ -614,11 +620,11 @@ def test_load_special_tokens_3(model_tmp_path): @pytest.mark.precommit -# @pytest.mark.xfail( -# raises=AssertionError, -# reason="CVS-143410 ov tokenizer should be aligned with hf", -# strict=False, -# ) +@pytest.mark.xfail( + raises=AssertionError, + reason="CVS-143410 ov tokenizer should be aligned with hf", + strict=False, +) def test_load_special_tokens_4(model_tmp_path): # only string representation is provided, find token integers by inference model_id, temp_path = model_tmp_path From 78e02ca857755808c5c81b2395b9ae48db24977f Mon Sep 17 00:00:00 2001 From: Alexander Suvorov Date: Fri, 28 Jun 2024 11:08:16 +0200 Subject: [PATCH 07/11] Unskip win test --- tests/python_tests/test_generate_api.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/python_tests/test_generate_api.py b/tests/python_tests/test_generate_api.py index 564f85f335..7f6bc793d0 100644 --- a/tests/python_tests/test_generate_api.py +++ b/tests/python_tests/test_generate_api.py @@ -212,7 +212,7 @@ def test_decoding(model_descr, generation_config, prompt): reason="pybind was unable to find overloads with tensor inputs on Linux and Widnows", strict=False, condition=sys.platform in [ - # "linux", + "linux", "win32" ] ) @@ -236,8 +236,8 @@ def test_ov_tensors(model_descr, inputs): reason="pybind was unable to find ov::Tensor from openvino yet", strict=False, condition=sys.platform in [ - # "linux", - "win32" + "linux", + # "win32" ] ) def test_genai_tokenizer_encode(model_descr, prompt): @@ -273,7 +273,10 @@ def test_genai_tokenizer_encode(model_descr, prompt): raises=TypeError, reason="pybind was unable to find ov::Tensor from openvino yet", strict=False, - condition=sys.platform in ["linux", "win32"] + condition=sys.platform in [ + "linux", + # "win32" + ] ) def test_genai_tokenizer_decode(model_descr, encoded_prompt): model_id, path, tokenizer, model, pipe = read_model(model_descr) @@ -748,7 +751,7 @@ def test_unicode_pybind_decoding_3(): @pytest.mark.parametrize("generation_config", configs) @pytest.mark.parametrize("model_descr", chat_models_list()) @pytest.mark.precommit -@pytest.mark.skipif(sys.platform == "linux", reason="no space left on linux device for chat models") +@pytest.mark.skipif(sys.platform in ["linux", "win32"], reason="no space left on device for chat models") def test_chat_1(model_descr, generation_config): config = generation_config.copy() # to avoid side effects From a310bcbc79e8cb9fc61f71305f699333813d7d6d Mon Sep 17 00:00:00 2001 From: Alexander Suvorov Date: Fri, 28 Jun 2024 11:31:46 +0200 Subject: [PATCH 08/11] Use 2019 studio --- .github/workflows/genai_python_lib.yml | 2 +- tests/python_tests/test_generate_api.py | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/genai_python_lib.yml b/.github/workflows/genai_python_lib.yml index 384c6a544a..07d7d648a1 100644 --- a/.github/workflows/genai_python_lib.yml +++ b/.github/workflows/genai_python_lib.yml @@ -59,7 +59,7 @@ jobs: - run: python -m pytest ./tests/python_tests/test_generate_api.py -m precommit windows_genai_python_lib: - runs-on: windows-latest + runs-on: windows-2019 env: CMAKE_BUILD_PARALLEL_LEVEL: null defaults: diff --git a/tests/python_tests/test_generate_api.py b/tests/python_tests/test_generate_api.py index 7f6bc793d0..258cf50c99 100644 --- a/tests/python_tests/test_generate_api.py +++ b/tests/python_tests/test_generate_api.py @@ -236,7 +236,7 @@ def test_ov_tensors(model_descr, inputs): reason="pybind was unable to find ov::Tensor from openvino yet", strict=False, condition=sys.platform in [ - "linux", + # "linux", # "win32" ] ) @@ -269,15 +269,15 @@ def test_genai_tokenizer_encode(model_descr, prompt): @pytest.mark.parametrize("model_descr", models_list()) @pytest.mark.parametrize("encoded_prompt", encoded_prompts) @pytest.mark.precommit -@pytest.mark.xfail( - raises=TypeError, - reason="pybind was unable to find ov::Tensor from openvino yet", - strict=False, - condition=sys.platform in [ - "linux", - # "win32" - ] -) +# @pytest.mark.xfail( +# raises=TypeError, +# reason="pybind was unable to find ov::Tensor from openvino yet", +# strict=False, +# condition=sys.platform in [ +# "linux", +# # "win32" +# ] +# ) def test_genai_tokenizer_decode(model_descr, encoded_prompt): model_id, path, tokenizer, model, pipe = read_model(model_descr) tok = pipe.get_tokenizer() From a08a338db81caaa29c20b23441ee7ef0c0f1dd28 Mon Sep 17 00:00:00 2001 From: Alexander Suvorov Date: Fri, 28 Jun 2024 12:10:55 +0200 Subject: [PATCH 09/11] Use 3.11 for linux --- .github/workflows/genai_python_lib.yml | 4 ++-- tests/python_tests/test_generate_api.py | 9 --------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/genai_python_lib.yml b/.github/workflows/genai_python_lib.yml index 07d7d648a1..cc81855358 100644 --- a/.github/workflows/genai_python_lib.yml +++ b/.github/workflows/genai_python_lib.yml @@ -22,7 +22,7 @@ jobs: submodules: recursive - uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: 3.11 - run: mkdir ./ov/ # Install CentOS7 instead of Ubuntu to match PyPI distribution ABI. - run: curl ${{ env.l_ov_centos_link }} | tar --directory ./ov/ --strip-components 1 -xz @@ -76,7 +76,7 @@ jobs: - run: unzip -d ov ov.zip - run: dirs=(ov/*) && mv ov/*/* ov && rmdir "${dirs[@]}" shell: bash - - run: call ./ov/setupvars.bat && cmake -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build/ + - run: call ./ov/setupvars.bat && cmake -G 'Ninja Multi-Config' -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build/ - run: call ./ov/setupvars.bat && cmake --build ./build/ --config Release -j - run: call ./ov/setupvars.bat && python -m pip install ./thirdparty/openvino_tokenizers/[transformers] -r ./tests/python_tests/requirements.txt --pre --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly --upgrade-strategy eager # cmd evaluates variables in a different way. Setting PYTHONPATH before setupvars.bat instead of doing that after solves that. diff --git a/tests/python_tests/test_generate_api.py b/tests/python_tests/test_generate_api.py index 258cf50c99..2048f61894 100644 --- a/tests/python_tests/test_generate_api.py +++ b/tests/python_tests/test_generate_api.py @@ -269,15 +269,6 @@ def test_genai_tokenizer_encode(model_descr, prompt): @pytest.mark.parametrize("model_descr", models_list()) @pytest.mark.parametrize("encoded_prompt", encoded_prompts) @pytest.mark.precommit -# @pytest.mark.xfail( -# raises=TypeError, -# reason="pybind was unable to find ov::Tensor from openvino yet", -# strict=False, -# condition=sys.platform in [ -# "linux", -# # "win32" -# ] -# ) def test_genai_tokenizer_decode(model_descr, encoded_prompt): model_id, path, tokenizer, model, pipe = read_model(model_descr) tok = pipe.get_tokenizer() From 4c048509e6a3b8123873f642f3a8794f3b1a39e3 Mon Sep 17 00:00:00 2001 From: Alexander Suvorov Date: Fri, 28 Jun 2024 12:26:17 +0200 Subject: [PATCH 10/11] Fix cmake command --- .github/workflows/genai_python_lib.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/genai_python_lib.yml b/.github/workflows/genai_python_lib.yml index cc81855358..f1556ec35b 100644 --- a/.github/workflows/genai_python_lib.yml +++ b/.github/workflows/genai_python_lib.yml @@ -76,7 +76,7 @@ jobs: - run: unzip -d ov ov.zip - run: dirs=(ov/*) && mv ov/*/* ov && rmdir "${dirs[@]}" shell: bash - - run: call ./ov/setupvars.bat && cmake -G 'Ninja Multi-Config' -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build/ + - run: call ./ov/setupvars.bat && cmake -G "Ninja Multi-Config" -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build/ - run: call ./ov/setupvars.bat && cmake --build ./build/ --config Release -j - run: call ./ov/setupvars.bat && python -m pip install ./thirdparty/openvino_tokenizers/[transformers] -r ./tests/python_tests/requirements.txt --pre --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly --upgrade-strategy eager # cmd evaluates variables in a different way. Setting PYTHONPATH before setupvars.bat instead of doing that after solves that. From f693d81f842e2c5420cd9b105afe9ea6e8268d5f Mon Sep 17 00:00:00 2001 From: Alexander Suvorov Date: Fri, 28 Jun 2024 12:47:18 +0200 Subject: [PATCH 11/11] Use latest win --- .github/workflows/genai_python_lib.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/genai_python_lib.yml b/.github/workflows/genai_python_lib.yml index f1556ec35b..c1ec632e88 100644 --- a/.github/workflows/genai_python_lib.yml +++ b/.github/workflows/genai_python_lib.yml @@ -22,7 +22,7 @@ jobs: submodules: recursive - uses: actions/setup-python@v4 with: - python-version: 3.11 + python-version: 3.12 - run: mkdir ./ov/ # Install CentOS7 instead of Ubuntu to match PyPI distribution ABI. - run: curl ${{ env.l_ov_centos_link }} | tar --directory ./ov/ --strip-components 1 -xz @@ -59,7 +59,7 @@ jobs: - run: python -m pytest ./tests/python_tests/test_generate_api.py -m precommit windows_genai_python_lib: - runs-on: windows-2019 + runs-on: windows-latest env: CMAKE_BUILD_PARALLEL_LEVEL: null defaults: @@ -71,12 +71,12 @@ jobs: submodules: recursive - uses: actions/setup-python@v4 with: - python-version: 3.11 + python-version: 3.12 - run: curl --output ov.zip ${{ env.w_ov_link }} - run: unzip -d ov ov.zip - run: dirs=(ov/*) && mv ov/*/* ov && rmdir "${dirs[@]}" shell: bash - - run: call ./ov/setupvars.bat && cmake -G "Ninja Multi-Config" -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build/ + - run: call ./ov/setupvars.bat && cmake -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build/ - run: call ./ov/setupvars.bat && cmake --build ./build/ --config Release -j - run: call ./ov/setupvars.bat && python -m pip install ./thirdparty/openvino_tokenizers/[transformers] -r ./tests/python_tests/requirements.txt --pre --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly --upgrade-strategy eager # cmd evaluates variables in a different way. Setting PYTHONPATH before setupvars.bat instead of doing that after solves that.