OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[GHA][MACOS] Fixed test dependencies to support macos x86 (#26631)
Mikhail Ryzhov62309fb88a5d
diff --git a/.github/workflows/job_cxx_unit_tests.yml b/.github/workflows/job_cxx_unit_tests.ymlindex 5265c65ed40..4e5b7aa3428 100644--- a/.github/workflows/job_cxx_unit_tests.yml+++ b/.github/workflows/job_cxx_unit_tests.yml@@ -22,7 +22,7 @@ permissions: read-alljobs:CXX_Unit_Tests:name: C++ unit tests- timeout-minutes: ${{ contains(inputs.runner, 'win') && 50 || 30 }}+ timeout-minutes: ${{ contains(inputs.runner, 'win') && 50 || 35 }}runs-on: ${{ inputs.runner }}container:image: ${{ inputs.image }}@@ -69,7 +69,7 @@ jobs:pushd $INSTALL_TEST_DIRtar -xzf openvino_tests.tar.gz -C $INSTALL_DIRpopd-+- name: Extract OpenVINO packages (Windows)if: ${{ runner.os == 'Windows' }}run: |@@ -79,7 +79,7 @@ jobs:pushd ${{ env.INSTALL_TEST_DIR }}Expand-Archive openvino_tests.zip -DestinationPath "${{ env.INSTALL_DIR }}"popd-+## Tests#@@ -106,7 +106,7 @@ jobs:if: fromJSON(inputs.affected-components).LP_transformations.testrun: |${{ env.SETUPVARS_COMMAND }}-+${{ env.INSTALL_TEST_DIR }}/ov_lp_transformations_tests --gtest_print_time=1 --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-LpTransformations.xml- name: OpenVINO Conditional compilation tests@@ -135,7 +135,7 @@ jobs:- name: TensorFlow Common frontend testsif: fromJSON(inputs.affected-components).TF_FE.test ||- fromJSON(inputs.affected-components).TFL_FE.test &&+ fromJSON(inputs.affected-components).TFL_FE.test &&(runner.os != 'macOS' && runner.arch != 'ARM64')run: |${{ env.SETUPVARS_COMMAND }}@@ -145,7 +145,7 @@ jobs:if: fromJSON(inputs.affected-components).TF_FE.testrun: |${{ env.SETUPVARS_COMMAND }}-+${{ env.INSTALL_TEST_DIR }}/ov_tensorflow_frontend_tests --gtest_print_time=1 --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-TensorFlowFrontend.xml- name: TensorFlow Lite frontend tests@@ -158,7 +158,7 @@ jobs:if: ${{ fromJSON(inputs.affected-components).transformations.test && runner.arch != 'ARM64' }} # Ticket: 126281run: |${{ env.SETUPVARS_COMMAND }}-+${{ env.INSTALL_TEST_DIR }}/ov_transformations_tests --gtest_print_time=1 --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-Transformations.xml- name: Common test utils testsdiff --git a/tests/constraints.txt b/tests/constraints.txtindex 35d4f14492f..eadf73ecc02 100644--- a/tests/constraints.txt+++ b/tests/constraints.txt@@ -31,4 +31,5 @@ transformers~=4.44flax<=0.9.0--extra-index-url https://download.pytorch.org/whl/cpu-torch~=2.4.1+torch~=2.4.1; platform_system != "Darwin" or platform_machine != "x86_64"+torch~=2.2.0; platform_system == "Darwin" and platform_machine == "x86_64"diff --git a/tests/layer_tests/pytorch_tests/test_eye.py b/tests/layer_tests/pytorch_tests/test_eye.pyindex 55af29b12a5..37b85008884 100644--- a/tests/layer_tests/pytorch_tests/test_eye.py+++ b/tests/layer_tests/pytorch_tests/test_eye.py@@ -2,6 +2,7 @@# SPDX-License-Identifier: Apache-2.0import pytest+import torchfrom pytorch_layer_test_class import PytorchLayerTest@@ -54,6 +55,7 @@ class TestEye(PytorchLayerTest):@pytest.mark.precommit_torch_export@pytest.mark.parametrize("dtype", ["bool", "int8", "uint8", "int32", "int64", "float32", "float64"])@pytest.mark.parametrize("m", [2, 3, 4, 5])+ @pytest.mark.skipif(torch.__version__ < '2.3.0', reason="`aten.eye` is not supported in PyTorch versions earlier than 2.3.")def test_eye_square(self, dtype, m, ie_device, precision, ir_version):if ie_device == "GPU":pytest.xfail(reason="eye is not supported on GPU")@@ -64,6 +66,7 @@ class TestEye(PytorchLayerTest):@pytest.mark.precommit_torch_export@pytest.mark.parametrize("dtype", ["bool", "int8", "uint8", "int32", "int64", "float32", "float64"])@pytest.mark.parametrize(("m", "n"), [[2, 2], [3, 4], [5, 3]])+ @pytest.mark.skipif(torch.__version__ < '2.3.0', reason="`aten.eye` is not supported in PyTorch versions earlier than 2.3.")def test_eye(self, dtype, m, n, ie_device, precision, ir_version):if ie_device == "GPU":pytest.xfail(reason="eye is not supported on GPU")