Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[GHA] Removed setup variables workaround (#31238)

Mikhail Ryzhov818464c6f97b
diff --git a/.github/workflows/debian_10_arm.yml b/.github/workflows/debian_10_arm.yml
index ab77649cdcf..796f142bdf9 100644
--- a/.github/workflows/debian_10_arm.yml
+++ b/.github/workflows/debian_10_arm.yml
@@ -89,7 +89,7 @@ jobs:
uses: ./.github/workflows/job_build_linux.yml
with:
runner: 'aks-linux-16-cores-32gb-arm'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.debian_10_arm }}", "volumes": ["/mount:/mount"], "options": "-e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING"}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_build.debian_10_arm }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
event-name: ${{ github.event_name }}
os: 'debian_10'
@@ -112,7 +112,7 @@ jobs:
-DENABLE_LTO=ON
-DENABLE_TESTS=ON
-DENABLE_PYTHON=OFF
- -DCMAKE_TOOLCHAIN_FILE=/__w/openvino/openvino/openvino/cmake/arm.toolchain.cmake
+ -DCMAKE_TOOLCHAIN_FILE=cmake/arm.toolchain.cmake
CXX_Unit_Tests:
name: C++ unit tests
diff --git a/.github/workflows/fedora_29.yml b/.github/workflows/fedora_29.yml
index 23993e07fe1..f4dc1428fb0 100644
--- a/.github/workflows/fedora_29.yml
+++ b/.github/workflows/fedora_29.yml
@@ -89,7 +89,7 @@ jobs:
uses: ./.github/workflows/job_build_linux.yml
with:
runner: 'aks-linux-16-cores-32gb'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.fedora_29 }}", "volumes": ["/mount:/mount"], "options": "-e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING"}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_build.fedora_29 }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
event-name: ${{ github.event_name }}
os: 'fedora_29'
diff --git a/.github/workflows/job_build_linux.yml b/.github/workflows/job_build_linux.yml
index 39e48e3442e..6cc89a2c1ea 100644
--- a/.github/workflows/job_build_linux.yml
+++ b/.github/workflows/job_build_linux.yml
@@ -5,11 +5,11 @@ on:
description: 'Machine on which the tests would run'
type: string
required: true
- container:
- description: 'JSON to be converted to the value of the "container" configuration for the job'
+ image:
+ description: 'Docker image to use for the job'
type: string
required: false
- default: '{"image": null}'
+ default: null
affected-components:
description: 'Components that are affected by changes in the commit defined by the Smart CI Action'
type: string
@@ -72,7 +72,14 @@ jobs:
name: Build
timeout-minutes: 150
runs-on: ${{ inputs.runner }}
- container: ${{ fromJSON(inputs.container) }}
+ container:
+ image: ${{ inputs.image }}
+ volumes:
+ - /mount:/mount
+ - ${{ github.workspace }}:${{ github.workspace }} # Needed as ${{ github.workspace }} is not working correctly when using Docker
+ options: >-
+ -e SCCACHE_AZURE_BLOB_CONTAINER
+ -e SCCACHE_AZURE_CONNECTION_STRING
defaults:
run:
shell: bash
@@ -83,20 +90,19 @@ jobs:
CMAKE_C_COMPILER_LAUNCHER: sccache
SCCACHE_IGNORE_SERVER_IO_ERROR: 1
SCCACHE_SERVER_PORT: 35555
- SCCACHE_ERROR_LOG: /__w/openvino/sccache_log.txt
+ SCCACHE_ERROR_LOG: ${{ github.workspace }}/sccache_log.txt
SCCACHE_LOG: warn
- GITHUB_WORKSPACE: /__w/openvino/openvino
- OPENVINO_REPO: /__w/openvino/openvino/openvino
- OPENVINO_CONTRIB_REPO: /__w/openvino/openvino/openvino_contrib
- INSTALL_DIR: /__w/openvino/openvino/openvino_install
- INSTALL_DIR_JS: /__w/openvino/openvino/openvino/src/bindings/js/node/bin
- INSTALL_TEST_DIR: /__w/openvino/openvino/tests_install
- INSTALL_WHEELS_DIR: /__w/openvino/openvino/install/wheels
- DEVELOPER_PACKAGE_DIR: /__w/openvino/openvino/developer_package_install
- BUILD_DIR: /__w/openvino/openvino/openvino_build
+ OPENVINO_REPO: ${{ github.workspace }}/openvino
+ OPENVINO_CONTRIB_REPO: ${{ github.workspace }}/openvino_contrib
+ INSTALL_DIR: ${{ github.workspace }}/openvino/openvino_install
+ INSTALL_DIR_JS: ${{ github.workspace }}/openvino/src/bindings/js/node/bin
+ INSTALL_TEST_DIR: ${{ github.workspace }}/openvino/tests_install
+ INSTALL_WHEELS_DIR: ${{ github.workspace }}/openvino/install/wheels
+ DEVELOPER_PACKAGE_DIR: ${{ github.workspace }}/openvino/developer_package_install
+ BUILD_DIR: ${{ github.workspace }}/openvino/openvino_build
SCCACHE_AZURE_KEY_PREFIX: ${{ inputs.os }}_${{ inputs.arch }}_Release
ARTIFACTS_SHARE: "/mount/build-artifacts"
- MANIFEST_PATH: '/__w/openvino/openvino/manifest.yml'
+ MANIFEST_PATH: '${{ github.workspace }}/openvino/manifest.yml'
PRODUCT_TYPE: public_linux_${{ inputs.os }}_${{ inputs.arch }}_release
steps:
- name: Clone OpenVINO (with trace)
@@ -221,7 +227,7 @@ jobs:
CMAKE_OPTIONS="-DPython3_EXECUTABLE=$python_exec_path -DENABLE_PYTHON=ON -DENABLE_WHEEL=ON -DOpenVINODeveloperPackage_DIR=${BUILD_DIR}"
if [[ "${OS}" == 'debian_10' ]]; then
echo "Adding ARM specific CMake options"
- CMAKE_OPTIONS+=" -DCMAKE_TOOLCHAIN_FILE=/__w/openvino/openvino/openvino/cmake/arm.toolchain.cmake -DPYTHON_MODULE_EXTENSION=$(/opt/python${py_version}_arm/bin/python${py_version}-config --extension-suffix) -DPython3_INCLUDE_DIR=/opt/python${py_version}_arm/include/python${py_version}"
+ CMAKE_OPTIONS+=" -DCMAKE_TOOLCHAIN_FILE=${{ env.OPENVINO_REPO }}/cmake/arm.toolchain.cmake -DPYTHON_MODULE_EXTENSION=$(/opt/python${py_version}_arm/bin/python${py_version}-config --extension-suffix) -DPython3_INCLUDE_DIR=/opt/python${py_version}_arm/include/python${py_version}"
fi
cmake ${CMAKE_OPTIONS} -S ${OPENVINO_REPO}/src/bindings/python -B ${PY_BUILD_DIR}
diff --git a/.github/workflows/job_cpu_functional_tests.yml b/.github/workflows/job_cpu_functional_tests.yml
index 2c267613b9a..f93e64f4570 100644
--- a/.github/workflows/job_cpu_functional_tests.yml
+++ b/.github/workflows/job_cpu_functional_tests.yml
@@ -8,7 +8,7 @@ on:
type: string
required: true
image:
- description: 'Docker image in which the tests would run'
+ description: 'Docker image to use for the job'
type: string
required: false
default: null
@@ -31,6 +31,8 @@ jobs:
runs-on: ${{ inputs.runner }}
container:
image: ${{ inputs.image }}
+ volumes:
+ - ${{ github.workspace }}:${{ github.workspace }} # Needed as ${{ github.workspace }} is not working correctly when using Docker
defaults:
run:
shell: bash
@@ -42,25 +44,21 @@ jobs:
PARALLEL_TEST_CACHE: ${{ github.workspace }}/install/tests/test_cache.lst
GTEST_FILTER: ${{ inputs.scope == 'nightly' && '' || '--gtest_filter=*smoke*' }}
steps:
- - name: Download OpenVINO package
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
+ - name: Fetch setup_python action
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+ timeout-minutes: 15
with:
- name: openvino_package
- path: ${{ env.INSTALL_DIR }}
-
- - name: Download OpenVINO tests package
+ sparse-checkout: |
+ .github/actions
+ sparse-checkout-cone-mode: false
+ submodules: 'false'
+
+ - name: Download OpenVINO artifacts (tarballs and wheels)
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
- name: openvino_tests
- path: ${{ env.INSTALL_TEST_DIR }}
-
- # Needed as ${{ github.workspace }} is not working correctly when using Docker
- - name: Setup Variables
- run: |
- echo "INSTALL_DIR=$GITHUB_WORKSPACE/install" >> "$GITHUB_ENV"
- echo "INSTALL_TEST_DIR=$GITHUB_WORKSPACE/install/tests" >> "$GITHUB_ENV"
- echo "PARALLEL_TEST_SCRIPT=$GITHUB_WORKSPACE/install/tests/functional_test_utils/layer_tests_summary/run_parallel.py" >> "$GITHUB_ENV"
- echo "PARALLEL_TEST_CACHE=$GITHUB_WORKSPACE/install/tests/test_cache.lst" >> "$GITHUB_ENV"
+ pattern: openvino_@(package|tests)
+ path: ${{ env.INSTALL_DIR }}
+ merge-multiple: true
- name: Install OpenVINO dependencies (mac)
if: runner.os == 'macOS'
@@ -68,25 +66,12 @@ jobs:
- name: Extract OpenVINO packages
run: |
- pushd $INSTALL_DIR
- pigz -dc openvino_package.tar.gz | tar -xf - -C ${INSTALL_DIR}
- popd
-
- pushd $INSTALL_TEST_DIR
- pigz -dc openvino_tests.tar.gz | tar -xf - -C ${INSTALL_DIR}
- popd
-
- - name: Fetch setup_python action
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- timeout-minutes: 15
- with:
- sparse-checkout: |
- .github/actions/setup_python/action.yml
- sparse-checkout-cone-mode: false
- path: 'openvino'
+ pigz -dc openvino_package.tar.gz | tar -xf - -v
+ pigz -dc openvino_tests.tar.gz | tar -xf - -v
+ working-directory: ${{ env.INSTALL_DIR }}
- name: Setup Python ${{ inputs.python-version }}
- uses: ./openvino/.github/actions/setup_python
+ uses: ./.github/actions/setup_python
with:
version: ${{ inputs.python-version }}
should-setup-pip-paths: 'false'
diff --git a/.github/workflows/job_cxx_unit_tests.yml b/.github/workflows/job_cxx_unit_tests.yml
index 2dbda514986..cb77ad0dfed 100644
--- a/.github/workflows/job_cxx_unit_tests.yml
+++ b/.github/workflows/job_cxx_unit_tests.yml
@@ -40,6 +40,8 @@ jobs:
runs-on: ${{ inputs.runner }}
container:
image: ${{ inputs.image }}
+ volumes:
+ - ${{ github.workspace }}:${{ github.workspace }} # Needed as ${{ github.workspace }} is not working correctly when using Docker
defaults:
run:
shell: ${{ contains(inputs.runner, 'win') && 'pwsh' || 'bash' }}
@@ -48,55 +50,32 @@ jobs:
INSTALL_DIR: ${{ github.workspace }}/install
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
SOURCE_COMMAND: ${{ contains(inputs.runner, 'linux') && 'source' || '.' }}
- SETUPVARS: ${{ contains(inputs.runner, 'win') && 'setupvars.ps1' || 'setupvars.sh' }}
+ SETUPVARS: ${{ github.workspace }}/install/${{ contains(inputs.runner, 'win') && 'setupvars.ps1' || 'setupvars.sh' }}
steps:
- - name: Download OpenVINO package
+ - name: Download OpenVINO artifacts (tarballs and tests)
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
- name: openvino_package
+ pattern: openvino_@(package|tests)
path: ${{ env.INSTALL_DIR }}
-
- - name: Download OpenVINO tests package
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
- with:
- name: openvino_tests
- path: ${{ env.INSTALL_TEST_DIR }}
-
- # Needed as ${{ github.workspace }} is not working correctly when using Docker
- - name: Setup Variables (Unix)
- if: ${{ runner.os != 'Windows' }}
- run: |
- echo "INSTALL_DIR=$GITHUB_WORKSPACE/install" >> "$GITHUB_ENV"
- echo "INSTALL_TEST_DIR=$GITHUB_WORKSPACE/install/tests" >> "$GITHUB_ENV"
- echo "SETUPVARS_COMMAND=${{ env.SOURCE_COMMAND }} $GITHUB_WORKSPACE/install/${{ env.SETUPVARS }}" >> "$GITHUB_ENV"
+ merge-multiple: true
- name: Install OpenVINO dependencies (mac)
if: runner.os == 'macOS'
run: brew install pigz
-
- - name: Setup Variables (Windows)
- if: ${{ runner.os == 'Windows' }}
- run: Add-Content -Path $env:GITHUB_ENV -Value "SETUPVARS_COMMAND=${{ env.SOURCE_COMMAND }} ${{ github.workspace }}/install/${{ env.SETUPVARS }}"
- name: Extract OpenVINO packages (Unix)
if: ${{ runner.os != 'Windows' }}
run: |
- pushd $INSTALL_DIR
- pigz -dc openvino_package.tar.gz | tar -xf - -C ${INSTALL_DIR}
- popd
- pushd $INSTALL_TEST_DIR
- pigz -dc openvino_tests.tar.gz | tar -xf - -C ${INSTALL_DIR}
- popd
+ pigz -dc openvino_package.tar.gz | tar -xf - -v
+ pigz -dc openvino_tests.tar.gz | tar -xf - -v
+ working-directory: ${{ env.INSTALL_DIR }}
- name: Extract OpenVINO packages (Windows)
if: ${{ runner.os == 'Windows' }}
run: |
- pushd ${{ env.INSTALL_DIR }}
- Expand-Archive openvino_package.zip -DestinationPath "${{ env.INSTALL_DIR }}"
- popd
- pushd ${{ env.INSTALL_TEST_DIR }}
- Expand-Archive openvino_tests.zip -DestinationPath "${{ env.INSTALL_DIR }}"
- popd
+ Expand-Archive openvino_package.zip -DestinationPath . -Verbose
+ Expand-Archive openvino_tests.zip -DestinationPath . -Verbose
+ working-directory: ${{ env.INSTALL_DIR }}
#
# Tests
@@ -105,50 +84,50 @@ jobs:
- name: OpenVINO Core Unit Tests
if: ${{ fromJSON(inputs.affected-components).Core.test && inputs.os != 'debian_10' }} # Ticket: 153150
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ env.INSTALL_TEST_DIR }}/ov_core_unit_tests --gtest_print_time=1 --gtest_filter=-*IE_GPU* --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-OVCoreUT.xml
- name: OpenVINO Inference Functional Tests
if: ${{ fromJSON(inputs.affected-components).inference.test && inputs.os != 'debian_10' }} # Ticket: 153151
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ env.INSTALL_TEST_DIR }}/ov_inference_functional_tests --gtest_print_time=1 --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-InferenceFunc.xml
- name: OpenVINO Inference Unit Tests
if: fromJSON(inputs.affected-components).inference.test
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ env.INSTALL_TEST_DIR }}/ov_inference_unit_tests --gtest_print_time=1 --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-InferenceUnit.xml
- name: Low Precision Transformations Tests
if: fromJSON(inputs.affected-components).LP_transformations.test
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ 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
if: fromJSON(inputs.affected-components).Core.test
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ env.INSTALL_TEST_DIR }}/ov_conditional_compilation_tests --gtest_print_time=1 --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-ConditionalCompilation.xml
- name: IR frontend tests
if: fromJSON(inputs.affected-components).IR_FE.test
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ env.INSTALL_TEST_DIR }}/ov_ir_frontend_tests --gtest_print_time=1 --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-IRFrontend.xml
- name: PaddlePaddle frontend tests
if: ${{ fromJSON(inputs.affected-components).PDPD_FE.test && runner.os != 'Windows' }} # Ticket: 149651
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ env.INSTALL_TEST_DIR }}/paddle_tests --gtest_print_time=1 --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-PaddleTests.xml
- name: ONNX frontend tests
if: ${{ fromJSON(inputs.affected-components).ONNX_FE.test && runner.arch != 'ARM64' }} # Ticket for macOS ARM64: 122663, for Linux ARM64: 126280, 153161
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ env.INSTALL_TEST_DIR }}/ov_onnx_frontend_tests --gtest_print_time=1 --gtest_filter=-*IE_GPU* --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-ONNXFrontend.xml
- name: TensorFlow Common frontend tests
@@ -156,128 +135,128 @@ jobs:
fromJSON(inputs.affected-components).TFL_FE.test &&
(runner.os != 'macOS' && runner.arch != 'ARM64')
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ env.INSTALL_TEST_DIR }}/ov_tensorflow_common_tests --gtest_print_time=1 --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-TensorFlowCommonFrontend.xml
- name: TensorFlow frontend tests
if: fromJSON(inputs.affected-components).TF_FE.test
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ 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
if: ${{ fromJSON(inputs.affected-components).TFL_FE.test }}
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ env.INSTALL_TEST_DIR }}/ov_tensorflow_lite_frontend_tests --gtest_print_time=1 --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-TensorFlowLiteFrontend.xml
- name: Transformations func tests
if: ${{ fromJSON(inputs.affected-components).transformations.test && runner.arch != 'ARM64' }} # Ticket: 126281
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ 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 tests
if: ${{ runner.os != 'macOS' }} # Ticket: 134469
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ env.INSTALL_TEST_DIR }}/ov_util_tests --gtest_print_time=1 --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-CommonUtilTests.xml
- name: Snippets func tests
if: fromJSON(inputs.affected-components).CPU.test
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ env.INSTALL_TEST_DIR }}/ov_snippets_func_tests --gtest_print_time=1 --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-SnippetsFuncTests.xml
- name: CPU plugin unit tests
if: fromJSON(inputs.affected-components).CPU.test
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ env.INSTALL_TEST_DIR }}/ov_cpu_unit_tests --gtest_print_time=1 --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-CPUUnitTests.xml
- name: CPU plugin unit tests (vectorized)
if: fromJSON(inputs.affected-components).CPU.test
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ env.INSTALL_TEST_DIR }}/ov_cpu_unit_tests_vectorized --gtest_print_time=1 --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-CPUUnitTestsVectorized.xml
- name: NPU plugin unit tests
if: ${{fromJSON(inputs.affected-components).NPU.test && runner.os == 'Windows'}}
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ env.INSTALL_TEST_DIR }}/ov_npu_unit_tests --gtest_print_time=1 --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-NPUUnitTests.xml
- name: ov_subgraphs_dumper_tests tests
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ env.INSTALL_TEST_DIR }}/ov_subgraphs_dumper_tests --gtest_print_time=1 --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-ov_subgraphs_dumper_tests.xml
- name: Template OpImpl tests
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ env.INSTALL_TEST_DIR }}/ov_op_conformance_tests --gtest_print_time=1 --device=TEMPLATE --gtest_filter=*OpImpl*--gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-OpImplTests.xml
- name: AUTO unit tests
if: fromJSON(inputs.affected-components).AUTO.test
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ env.INSTALL_TEST_DIR }}/ov_auto_unit_tests --gtest_print_time=1 --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-ov_auto_unit_tests.xml
- name: AUTO func Tests
if: fromJSON(inputs.affected-components).AUTO.test
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ env.INSTALL_TEST_DIR }}/ov_auto_func_tests --gtest_print_time=1 --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-ov_auto_func_tests.xml
# Disabled for debug build due to long execution time
- name: Template plugin func tests
if: ${{ fromJSON(inputs.affected-components).TEMPLATE.test && inputs.build-type != 'debug' }}
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ env.INSTALL_TEST_DIR }}/ov_template_func_tests --gtest_print_time=1 --gtest_filter=*smoke* --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-TemplateFuncTests.xml
- name: OV utils unit tests
if: ${{ runner.os != 'macOS' }} # Ticket: 134469
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ env.INSTALL_TEST_DIR }}/ov_util_tests --gtest_print_time=1 --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-ov_util_tests.xml
- name: OpenVINO C API tests
if: ${{ fromJSON(inputs.affected-components).C_API.test && inputs.os != 'debian_10' }} # Ticket: 153169
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ env.INSTALL_TEST_DIR }}/ov_capi_test --gtest_print_time=1 --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-OpenVINOCAPITests.xml
- name: AutoBatch unit tests
if: fromJSON(inputs.affected-components).AUTO_BATCH.test
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ env.INSTALL_TEST_DIR }}/ov_auto_batch_unit_tests --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-ov_auto_batch_unit_tests.xml
# Disabled for debug build due to long execution time
- name: AutoBatch func tests
if: ${{ fromJSON(inputs.affected-components).AUTO_BATCH.test && inputs.build-type != 'debug' }}
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ env.INSTALL_TEST_DIR }}/ov_auto_batch_func_tests --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-ov_auto_batch_func_tests.xml --gtest_filter="*smoke*"
- name: Proxy Plugin func tests
if: fromJSON(inputs.affected-components).PROXY.test
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ env.INSTALL_TEST_DIR }}/ov_proxy_plugin_tests --gtest_print_time=1 --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-OVProxyTests.xml
- name: Hetero unit tests
if: fromJSON(inputs.affected-components).HETERO.test
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ env.INSTALL_TEST_DIR }}/ov_hetero_unit_tests --gtest_print_time=1 --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-OVHeteroUnitTests.xml
# Disabled for debug build due to long execution time
- name: Hetero func tests
if: ${{ fromJSON(inputs.affected-components).HETERO.test && inputs.os != 'debian_10' && inputs.build-type != 'debug' }} # Ticket: 153170
run: |
- ${{ env.SETUPVARS_COMMAND }}
+ ${{ env.SOURCE_COMMAND }} ${{ env.SETUPVARS }}
${{ env.INSTALL_TEST_DIR }}/ov_hetero_func_tests --gtest_print_time=1 --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-OVHeteroFuncTests.xml --gtest_filter="*smoke*" --gtest_filter=-"nightly*"
- name: Upload Test Results
diff --git a/.github/workflows/job_debian_packages.yml b/.github/workflows/job_debian_packages.yml
index e9cfec29f5f..271198862c2 100644
--- a/.github/workflows/job_debian_packages.yml
+++ b/.github/workflows/job_debian_packages.yml
@@ -21,6 +21,8 @@ jobs:
runs-on: ${{ inputs.runner }}
container:
image: ${{ inputs.image }}
+ volumes:
+ - ${{ github.workspace }}:${{ github.workspace }} # Needed as ${{ github.workspace }} is not working correctly when using Docker
defaults:
run:
shell: bash
@@ -38,10 +40,6 @@ jobs:
name: openvino_debian_packages
path: ${{ env.DEBIAN_PACKAGES_DIR }}
- # Needed as ${{ github.workspace }} is not working correctly when using Docker
- - name: Setup Variables
- run: echo "DEBIAN_PACKAGES_DIR=$GITHUB_WORKSPACE/packages" >> "$GITHUB_ENV"
-
- name: Install debian packages & check conflicts
run: |
apt-get update -y
diff --git a/.github/workflows/job_gpu_tests.yml b/.github/workflows/job_gpu_tests.yml
index dd38e68f9f3..33249fdd651 100644
--- a/.github/workflows/job_gpu_tests.yml
+++ b/.github/workflows/job_gpu_tests.yml
@@ -15,11 +15,16 @@ on:
description: 'Runner labels by which the runner will be chosen. Example: [ "self-hosted", "igpu" ]'
type: string
required: true
- container:
- description: 'JSON to be converted to the value of the "container" configuration for the job'
+ image:
+ description: 'Docker image in which the tests would run'
type: string
required: false
- default: '{"image": null}'
+ default: null
+ options:
+ description: 'Docker options to use for the job'
+ type: string
+ required: false
+ default: ''
permissions: read-all
@@ -27,7 +32,12 @@ jobs:
GPU:
timeout-minutes: 80
runs-on: ${{ fromJSON(inputs.runner) }}
- container: ${{ fromJSON(inputs.container) }}
+ container:
+ image: ${{ inputs.image }}
+ volumes:
+ - /dev/dri:/dev/dri
+ - ${{ github.workspace }}:${{ github.workspace }} # Needed as ${{ github.workspace }} is not working correctly when using Docker
+ options: ${{ inputs.options }}
defaults:
run:
shell: bash
@@ -37,38 +47,22 @@ jobs:
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
GTEST_PARALLEL_SCRIPT: ${{ github.workspace }}/gtest_parallel.py
steps:
- - name: Download OpenVINO package
+ - name: Download OpenVINO artifacts (tarballs and wheels)
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
- name: 'openvino_package'
+ pattern: openvino_@(package|tests)
path: ${{ env.INSTALL_DIR }}
-
- - name: Download OpenVINO tests package
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
- with:
- name: 'openvino_tests'
- path: ${{ env.INSTALL_TEST_DIR }}
-
- # Needed as ${{ github.workspace }} is not working correctly when using Docker
- - name: Setup Variables
- run: |
- echo "INSTALL_DIR=$GITHUB_WORKSPACE/install" >> "$GITHUB_ENV"
- echo "INSTALL_TEST_DIR=$GITHUB_WORKSPACE/install/tests" >> "$GITHUB_ENV"
- echo "GTEST_PARALLEL_SCRIPT=$GITHUB_WORKSPACE/gtest_parallel.py" >> "$GITHUB_ENV"
+ merge-multiple: true
- name: Extract OpenVINO packages
run: |
- pushd $INSTALL_DIR
- pigz -dc openvino_package.tar.gz | tar -xf - -C ${INSTALL_DIR}
- popd
- pushd $INSTALL_TEST_DIR
- pigz -dc openvino_tests.tar.gz | tar -xf - -C ${INSTALL_DIR}
- popd
+ pigz -dc openvino_package.tar.gz | tar -xf - -v
+ pigz -dc openvino_tests.tar.gz | tar -xf - -v
+ working-directory: ${{ env.INSTALL_DIR }}
- name: Install dependencies (Linux)
run: |
$INSTALL_DIR/install_dependencies/install_openvino_dependencies.sh -c=core -c=dev -c=gpu -y
-
apt-get update && apt-get install -y wget software-properties-common ca-certificates gpg-agent tzdata clinfo
env:
DEBIAN_FRONTEND: noninteractive # to prevent apt-get from waiting user input
diff --git a/.github/workflows/job_jax_layer_tests.yml b/.github/workflows/job_jax_layer_tests.yml
index 10a99b6d598..d388044a237 100644
--- a/.github/workflows/job_jax_layer_tests.yml
+++ b/.github/workflows/job_jax_layer_tests.yml
@@ -7,11 +7,11 @@ on:
description: 'Machine on which the tests would run'
type: string
required: true
- container:
- description: 'JSON to be converted to the value of the "container" configuration for the job'
+ image:
+ description: 'Docker image to use for the job'
type: string
required: false
- default: '{"image": null}'
+ default: null
affected-components:
description: 'Components that are affected by changes in the commit defined by the Smart CI Action'
type: string
@@ -26,53 +26,49 @@ permissions: read-all
env:
PIP_CACHE_PATH_LINUX: /mount/caches/pip/linux
PIP_CACHE_PATH_WIN: "C:\\mount\\caches\\pip\\win"
+ HF_HUB_CACHE_LIN: /mount/caches/huggingface
+ HF_HUB_CACHE_WIN: "C:\\mount\\caches\\huggingface"
jobs:
JAX_Layer_Tests:
name: JAX Layer Tests
timeout-minutes: 40
runs-on: ${{ inputs.runner }}
- container: ${{ fromJSON(inputs.container) }}
+ container:
+ image: ${{ inputs.image }}
+ volumes:
+ - /mount:/mount
+ - ${{ github.workspace }}:${{ github.workspace }} # Needed as ${{ github.workspace }} is not working correctly when using Docker
+ options: "-e HF_TOKEN"
defaults:
run:
shell: ${{ contains(inputs.runner, 'win') && 'pwsh' || 'bash' }}
env:
DEBIAN_FRONTEND: noninteractive # to prevent apt-get from waiting user input
- OPENVINO_REPO: ${{ github.workspace }}/openvino
INSTALL_DIR: ${{ github.workspace }}/install
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
- INSTALL_WHEELS_DIR: ${{ github.workspace }}/install/wheels
- LAYER_TESTS_INSTALL_DIR: ${{ github.workspace }}/install/tests/layer_tests
USE_SYSTEM_CACHE: False # Using remote HuggingFace cache
steps:
- - name: Download OpenVINO artifacts (tarballs)
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
+ # checkout action cleans up the workspace and have to be the first step
+ - name: Fetch custom actions
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+ timeout-minutes: 15
with:
- pattern: openvino_[tests]*
- path: ${{ env.INSTALL_DIR }}
- merge-multiple: true
-
- - name: Download OpenVINO artifacts (wheels)
+ sparse-checkout: |
+ .github/actions
+ sparse-checkout-cone-mode: false
+ submodules: 'false'
+
+ - name: Download OpenVINO artifacts (tarballs and wheels)
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
- pattern: openvino_[wheels]*
- path: ${{ env.INSTALL_WHEELS_DIR }}
+ pattern: openvino_@(wheels|tests)
+ path: ${{ env.INSTALL_DIR }}
merge-multiple: true
- # Needed as ${{ github.workspace }} is not working correctly when using Docker
- name: Setup Variables
- if: runner.os != 'Windows'
run: |
- echo "OPENVINO_REPO=$GITHUB_WORKSPACE/openvino" >> "$GITHUB_ENV"
- echo "INSTALL_DIR=$GITHUB_WORKSPACE/install" >> "$GITHUB_ENV"
- echo "INSTALL_TEST_DIR=$GITHUB_WORKSPACE/install/tests" >> "$GITHUB_ENV"
- echo "INSTALL_WHEELS_DIR=$GITHUB_WORKSPACE/install/wheels" >> "$GITHUB_ENV"
- echo "LAYER_TESTS_INSTALL_DIR=$GITHUB_WORKSPACE/install/tests/layer_tests" >> "$GITHUB_ENV"
- echo "HF_HUB_CACHE=/mount/caches/huggingface" >> "$GITHUB_ENV"
-
- - name: Setup HuggingFace Cache Directory (Windows)
- if: runner.os == 'Windows'
- run: Add-Content -Path $env:GITHUB_ENV -Value "HF_HUB_CACHE=C:\\mount\\caches\\huggingface"
+ echo "HF_HUB_CACHE=${{ runner.os == 'Linux' && env.HF_HUB_CACHE_LIN || env.HF_HUB_CACHE_WIN }}" >> "$GITHUB_ENV"
- name: Install OpenVINO dependencies (mac)
if: runner.os == 'macOS'
@@ -80,27 +76,16 @@ jobs:
- name: Extract OpenVINO packages (Linux, macOS)
if: runner.os != 'Windows'
- run: |
- pigz -dc openvino_tests.tar.gz | tar -xf - -C ${INSTALL_DIR}
+ run: pigz -dc openvino_tests.tar.gz | tar -xf - -v
working-directory: ${{ env.INSTALL_DIR }}
- name: Extract OpenVINO artifacts (Windows)
if: runner.os == 'Windows'
- run: Expand-Archive openvino_tests.zip -DestinationPath ${{ env.INSTALL_DIR }}
+ run: Expand-Archive openvino_tests.zip -DestinationPath . -Verbose
working-directory: ${{ env.INSTALL_DIR }}
- - name: Fetch setup_python and install wheels actions
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- timeout-minutes: 15
- with:
- sparse-checkout: |
- .github/actions/setup_python/action.yml
- .github/actions/install_ov_wheels/action.yml
- sparse-checkout-cone-mode: false
- path: 'openvino'
-
- name: Setup Python ${{ inputs.python-version }}
- uses: ./openvino/.github/actions/setup_python
+ uses: ./.github/actions/setup_python
with:
version: ${{ inputs.python-version }}
pip-cache-path: ${{ runner.os == 'Linux' && env.PIP_CACHE_PATH_LINUX || env.PIP_CACHE_PATH_WIN }}
@@ -108,9 +93,9 @@ jobs:
self-hosted-runner: ${{ runner.os != 'macOS' }}
- name: Install OpenVINO Python wheels
- uses: ./openvino/.github/actions/install_ov_wheels
+ uses: ./.github/actions/install_ov_wheels
with:
- wheels-dir-path: ${{ env.INSTALL_WHEELS_DIR }}
+ wheels-dir-path: ${{ env.INSTALL_DIR }}
wheels-to-install: 'openvino'
- name: Install JAX Layer tests dependencies
@@ -120,7 +105,7 @@ jobs:
- name: JAX Layer Tests
if: ${{ fromJSON(inputs.affected-components).JAX_FE.test && runner.arch != 'ARM64' }} # Ticket: 126287, 142196
- run: python3 -m pytest ${{ env.LAYER_TESTS_INSTALL_DIR }}/jax_tests ${PARALLEL} -m precommit_jax_fe --junitxml=${{ env.INSTALL_TEST_DIR }}/TEST-jax.xml
+ run: python3 -m pytest ${{ env.INSTALL_TEST_DIR }}/layer_tests/jax_tests ${PARALLEL} -m precommit_jax_fe --junitxml=${{ env.INSTALL_TEST_DIR }}/TEST-jax.xml
env:
TEST_DEVICE: CPU
TEST_PRECISION: FP16
diff --git a/.github/workflows/job_jax_models_tests.yml b/.github/workflows/job_jax_models_tests.yml
index 01a205e3cc8..836e9e7a47c 100644
--- a/.github/workflows/job_jax_models_tests.yml
+++ b/.github/workflows/job_jax_models_tests.yml
@@ -7,11 +7,11 @@ on:
description: 'Machine on which the tests would run'
type: string
required: true
- container:
- description: 'JSON to be converted to the value of the "container" configuration for the job'
+ image:
+ description: 'Docker image to use for the job'
type: string
required: false
- default: '{"image": null}'
+ default: null
model_scope:
description: 'Scope of models for testing.'
type: string
@@ -19,12 +19,21 @@ on:
permissions: read-all
+env:
+ HF_HUB_CACHE_LIN: /mount/caches/huggingface
+ HF_HUB_CACHE_WIN: "C:\\mount\\caches\\huggingface"
+
jobs:
JAX_Models_Tests:
name: JAX/Flax Models tests
timeout-minutes: ${{ inputs.model_scope == 'precommit' && 35 || 35 }}
runs-on: ${{ inputs.runner }}
- container: ${{ fromJSON(inputs.container) }}
+ container:
+ image: ${{ inputs.image }}
+ volumes:
+ - /mount:/mount
+ - ${{ github.workspace }}:${{ github.workspace }} # Needed as ${{ github.workspace }} is not working correctly when using Docker
+ options: "-e HF_TOKEN"
defaults:
run:
shell: bash
@@ -33,64 +42,45 @@ jobs:
OPENVINO_REPO: ${{ github.workspace }}/openvino
INSTALL_DIR: ${{ github.workspace }}/install
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
- INSTALL_WHEELS_DIR: ${{ github.workspace }}/install/wheels
MODEL_HUB_TESTS_INSTALL_DIR: ${{ github.workspace }}/install/tests/model_hub_tests
USE_SYSTEM_CACHE: False # Using remote HuggingFace cache
steps:
- - name: Download OpenVINO artifacts (tarballs)
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
+ # checkout action cleans up the workspace and have to be the first step
+ - name: Fetch custom actions
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+ timeout-minutes: 15
with:
- pattern: openvino_[tests]*
- path: ${{ env.INSTALL_DIR }}
- merge-multiple: true
-
- - name: Download OpenVINO artifacts (wheels)
+ sparse-checkout: |
+ .github/actions
+ sparse-checkout-cone-mode: false
+ submodules: 'false'
+
+ - name: Download OpenVINO artifacts (tarballs and wheels)
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
- pattern: openvino_[tokenizers_wheel|wheels]*
- path: ${{ env.INSTALL_WHEELS_DIR }}
+ pattern: openvino_@(wheels|tests|tokenizers_wheel)
+ path: ${{ env.INSTALL_DIR }}
merge-multiple: true
- # Needed as ${{ github.workspace }} is not working correctly when using Docker
- name: Setup Variables
run: |
- echo "OPENVINO_REPO=$GITHUB_WORKSPACE/openvino" >> "$GITHUB_ENV"
- echo "INSTALL_DIR=$GITHUB_WORKSPACE/install" >> "$GITHUB_ENV"
- echo "INSTALL_TEST_DIR=$GITHUB_WORKSPACE/install/tests" >> "$GITHUB_ENV"
- echo "INSTALL_WHEELS_DIR=$GITHUB_WORKSPACE/install/wheels" >> "$GITHUB_ENV"
- echo "MODEL_HUB_TESTS_INSTALL_DIR=$GITHUB_WORKSPACE/install/tests/model_hub_tests" >> "$GITHUB_ENV"
- echo "HF_HUB_CACHE=/mount/caches/huggingface" >> "$GITHUB_ENV"
-
- - name: Setup HuggingFace Cache Directory (Windows)
- if: runner.os == 'Windows'
- run: Add-Content -Path $env:GITHUB_ENV -Value "HF_HUB_CACHE=C:\\mount\\caches\\huggingface"
+ echo "HF_HUB_CACHE=${{ runner.os == 'Linux' && env.HF_HUB_CACHE_LIN || env.HF_HUB_CACHE_WIN }}" >> "$GITHUB_ENV"
- name: Extract OpenVINO packages and tests
- run: |
- pigz -dc openvino_tests.tar.gz | tar -xf - -C ${INSTALL_DIR}
+ run: pigz -dc openvino_tests.tar.gz | tar -xf - -v
working-directory: ${{ env.INSTALL_DIR }}
- - name: Fetch setup_python and install wheels actions
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- timeout-minutes: 15
- with:
- sparse-checkout: |
- .github/actions/setup_python/action.yml
- .github/actions/install_ov_wheels/action.yml
- sparse-checkout-cone-mode: false
- path: 'openvino'
-
- name: Setup Python 3.11
- uses: ./openvino/.github/actions/setup_python
+ uses: ./.github/actions/setup_python
with:
version: '3.11'
should-setup-pip-paths: 'false'
self-hosted-runner: ${{ contains(inputs.runner, 'aks') }}
- name: Install OpenVINO Python wheels
- uses: ./openvino/.github/actions/install_ov_wheels
+ uses: ./.github/actions/install_ov_wheels
with:
- wheels-dir-path: ${{ env.INSTALL_WHEELS_DIR }}
+ wheels-dir-path: ${{ env.INSTALL_DIR }}
wheels-to-install: 'openvino openvino_tokenizers'
- name: Install prerequisites and JAX tests requirements for precommit
diff --git a/.github/workflows/job_keras3_backend.yml b/.github/workflows/job_keras3_backend.yml
index f6b5be6d062..dd0316de6e9 100644
--- a/.github/workflows/job_keras3_backend.yml
+++ b/.github/workflows/job_keras3_backend.yml
@@ -7,11 +7,11 @@ on:
description: 'Machine on which the tests would run'
type: string
required: true
- container:
- description: 'JSON to be converted to the value of the "container" configuration for the job'
+ image:
+ description: 'Docker image to use for the job'
type: string
required: false
- default: '{"image": null}'
+ default: null
python-version:
description: 'Python version to setup. E.g., "3.11"'
type: string
@@ -31,33 +31,27 @@ jobs:
run:
shell: ${{ contains(inputs.runner, 'win') && 'pwsh' || 'bash' }}
runs-on: ${{ inputs.runner }}
- container: ${{ fromJSON(inputs.container) }}
+ container:
+ image: ${{ inputs.image }}
+ volumes:
+ - /mount:/mount
+ - ${{ github.workspace }}:${{ github.workspace }} # Needed as ${{ github.workspace }} is not working correctly when using Docker
env:
INSTALL_DIR: ${{ github.workspace }}/install
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
- INSTALL_WHEELS_DIR: ${{ github.workspace }}/install/wheels
KERAS_REPO: ${{ github.workspace }}/keras_repo
KERAS_HOME: ${{ github.workspace }}/keras_repo/.github/workflows/config/openvino
steps:
- # Needed as ${{ github.workspace }} is not working correctly when using Docker
- - name: Setup Variables
- run: |
- echo "INSTALL_DIR=$GITHUB_WORKSPACE/install" >> "$GITHUB_ENV"
- echo "INSTALL_TEST_DIR=$GITHUB_WORKSPACE/install/tests" >> "$GITHUB_ENV"
- echo "INSTALL_WHEELS_DIR=$GITHUB_WORKSPACE/install/wheels" >> "$GITHUB_ENV"
- echo "KERAS_REPO=$GITHUB_WORKSPACE/keras" >> "$GITHUB_ENV"
- echo "KERAS_HOME=$GITHUB_WORKSPACE/keras/.github/workflows/config/openvino" >> "$GITHUB_ENV"
-
- - name: Fetch setup_python and install wheels actions
+ # checkout action cleans up the workspace and have to be the first step
+ - name: Fetch custom actions
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
timeout-minutes: 15
with:
sparse-checkout: |
- .github/actions/setup_python/action.yml
- .github/actions/install_ov_wheels/action.yml
+ .github/actions
sparse-checkout-cone-mode: false
- path: 'openvino'
+ submodules: 'false'
- name: Clone Keras 3 repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -70,12 +64,12 @@ jobs:
- name: Download OpenVINO artifacts (wheels)
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
- pattern: openvino_[wheels|openvino_tokenizers]*
- path: ${{ env.INSTALL_WHEELS_DIR }}
+ pattern: openvino_@(wheels|tokenizers_wheel)
+ path: ${{ env.INSTALL_DIR }}
merge-multiple: true
- name: Setup Python ${{ inputs.python-version }}
- uses: ./openvino/.github/actions/setup_python
+ uses: ./.github/actions/setup_python
with:
version: ${{ inputs.python-version }}
pip-cache-path: ${{ runner.os == 'Linux' && env.PIP_CACHE_PATH_LINUX || env.PIP_CACHE_PATH_WIN }}
@@ -83,9 +77,9 @@ jobs:
self-hosted-runner: ${{ runner.os != 'macOS' }}
- name: Install OpenVINO Python wheels
- uses: ./openvino/.github/actions/install_ov_wheels
+ uses: ./.github/actions/install_ov_wheels
with:
- wheels-dir-path: ${{ env.INSTALL_WHEELS_DIR }}
+ wheels-dir-path: ${{ env.INSTALL_DIR }}
wheels-to-install: 'openvino openvino_tokenizers'
- name: Install test dependencies
diff --git a/.github/workflows/job_onnx_models_tests.yml b/.github/workflows/job_onnx_models_tests.yml
index 4b9fe0795af..a557a6f59ca 100644
--- a/.github/workflows/job_onnx_models_tests.yml
+++ b/.github/workflows/job_onnx_models_tests.yml
@@ -7,20 +7,29 @@ on:
description: 'Machine on which the tests would run'
type: string
required: true
- container:
- description: 'JSON to be converted to the value of the "container" configuration for the job'
+ image:
+ description: 'Docker image to use for the job'
type: string
required: false
- default: '{"image": null}'
+ default: null
permissions: read-all
+env:
+ HF_HUB_CACHE_LIN: /mount/caches/huggingface
+ HF_HUB_CACHE_WIN: "C:\\mount\\caches\\huggingface"
+
jobs:
ONNX_Models_tests:
name: ONNX Models tests
timeout-minutes: 60
runs-on: ${{ inputs.runner }}
- container: ${{ fromJSON(inputs.container) }}
+ container:
+ image: ${{ inputs.image }}
+ volumes:
+ - /mount:/mount
+ - ${{ github.workspace }}:${{ github.workspace }} # Needed as ${{ github.workspace }} is not working correctly when using Docker
+ options: "-e HF_TOKEN" # Needed for HuggingFace cache authentication
defaults:
run:
shell: bash
@@ -28,7 +37,6 @@ jobs:
DEBIAN_FRONTEND: noninteractive # to prevent apt-get from waiting user input
OPENVINO_REPO: ${{ github.workspace }}/openvino
INSTALL_DIR: ${{ github.workspace }}/install
- INSTALL_WHEELS_DIR: ${{ github.workspace }}/install/wheels
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
ONNX_MODELS_PATH: ${{ github.workspace }}/onnx_test_models
# instead of using static MODELS_SHARE_PATH
@@ -37,41 +45,34 @@ jobs:
NUMBER_OF_REPLICAS: 2
ONNX_MODEL_ZOO_SHA: "5faef4c33eba0395177850e1e31c4a6a9e634c82"
USE_SYSTEM_CACHE: False # Using remote HuggingFace cache
+ LOGS_FOLDER: ${{ github.workspace }}/onnx_models_tests_logs"
if: ${{ github.event_name != 'merge_group' }}
steps:
- - name: Download OpenVINO artifacts (tests)
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
+ # checkout action cleans up the workspace and have to be the first step
+ - name: Fetch custom actions
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+ timeout-minutes: 15
with:
- pattern: openvino_[tests]*
- path: ${{ env.INSTALL_DIR }}
- merge-multiple: true
-
- - name: Download OpenVINO artifacts (wheels)
+ sparse-checkout: |
+ .github/actions
+ sparse-checkout-cone-mode: false
+ submodules: 'false'
+
+ - name: Download OpenVINO artifacts (tarballs and wheels)
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
- pattern: openvino_[wheels]*
- path: ${{ env.INSTALL_WHEELS_DIR }}
+ pattern: openvino_@(wheels|tests)
+ path: ${{ env.INSTALL_DIR }}
merge-multiple: true
+
+ - name: Extract OpenVINO tests
+ run: pigz -dc openvino_tests.tar.gz | tar -xf - -v
+ working-directory: ${{ env.INSTALL_DIR }}
- # Needed as ${{ github.workspace }} is not working correctly when using Docker
- name: Setup Variables
run: |
- echo "OPENVINO_REPO=$GITHUB_WORKSPACE/openvino" >> "$GITHUB_ENV"
- echo "INSTALL_DIR=$GITHUB_WORKSPACE/install" >> "$GITHUB_ENV"
- echo "INSTALL_TEST_DIR=$GITHUB_WORKSPACE/install/tests" >> "$GITHUB_ENV"
- echo "INSTALL_WHEELS_DIR=$GITHUB_WORKSPACE/install/wheels" >> "$GITHUB_ENV"
+ echo "HF_HUB_CACHE=${{ runner.os == 'Linux' && env.HF_HUB_CACHE_LIN || env.HF_HUB_CACHE_WIN }}" >> "$GITHUB_ENV"
echo "MODELS_SHARE_PATH=/mount/testdata$((GITHUB_RUN_NUMBER % NUMBER_OF_REPLICAS))" >> "$GITHUB_ENV"
- echo "LOGS_FOLDER=$GITHUB_WORKSPACE/onnx_models_tests_logs" >> "$GITHUB_ENV"
- echo "HF_HUB_CACHE=/mount/caches/huggingface" >> "$GITHUB_ENV"
-
- - name: Setup HuggingFace Cache Directory (Windows)
- if: runner.os == 'Windows'
- run: Add-Content -Path $env:GITHUB_ENV -Value "HF_HUB_CACHE=C:\\mount\\caches\\huggingface"
-
- - name: Extract OpenVINO packages and tests
- run: |
- pigz -dc openvino_tests.tar.gz | tar -xf - -C ${INSTALL_DIR}
- working-directory: ${{ env.INSTALL_DIR }}
# Issue 148922
# Can be a possible root cause for the bug
@@ -88,19 +89,10 @@ jobs:
# - name: Update Models
# run: bash ${OPENVINO_REPO}/src/frontends/onnx/tests/tests_python/model_zoo_preprocess.sh -d ${MODELS_SHARE_PATH} -o -s "${{ env.ONNX_MODEL_ZOO_SHA }}"
- - name: Fetch install wheels action
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- timeout-minutes: 15
- with:
- sparse-checkout: |
- .github/actions/install_ov_wheels/action.yml
- sparse-checkout-cone-mode: false
- path: 'action_root'
-
- name: Install OpenVINO Python wheels
- uses: ./action_root/.github/actions/install_ov_wheels
+ uses: ./.github/actions/install_ov_wheels
with:
- wheels-dir-path: ${{ env.INSTALL_WHEELS_DIR }}
+ wheels-dir-path: ${{ env.INSTALL_DIR }}
wheels-to-install: 'openvino'
- name: Install ONNX Models tests requirements
diff --git a/.github/workflows/job_onnx_runtime.yml b/.github/workflows/job_onnx_runtime.yml
index d875473c1a8..5b6769dc599 100644
--- a/.github/workflows/job_onnx_runtime.yml
+++ b/.github/workflows/job_onnx_runtime.yml
@@ -7,11 +7,11 @@ on:
description: 'Machine on which the tests would run'
type: string
required: true
- container:
- description: 'JSON to be converted to the value of the "container" configuration for the job'
+ image:
+ description: 'Docker image to use for the job'
type: string
required: false
- default: '{"image": null}'
+ default: null
sccache-azure-key-prefix:
description: 'Key prefix for the cache folder on the Azure'
type: string
@@ -24,13 +24,17 @@ jobs:
name: ONNX Runtime Integration
timeout-minutes: 60
runs-on: ${{ inputs.runner }}
- container: ${{ fromJSON(inputs.container) }}
+ container:
+ image: ${{ inputs.image }}
+ volumes:
+ - /mount:/mount
+ - ${{ github.workspace }}:${{ github.workspace }} # Needed as ${{ github.workspace }} is not working correctly when using Docker
+ options: "-e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING -e HF_TOKEN"
defaults:
run:
shell: bash
env:
DEBIAN_FRONTEND: noninteractive # to prevent apt-get from waiting user input
- OPENVINO_REPO: ${{ github.workspace }}/openvino
INSTALL_DIR: ${{ github.workspace }}/install
CMAKE_GENERATOR: 'Ninja Multi-Config'
CMAKE_CXX_COMPILER_LAUNCHER: sccache
@@ -40,28 +44,9 @@ jobs:
SCCACHE_AZURE_KEY_PREFIX: ${{ inputs.sccache-azure-key-prefix }}
ONNX_RUNTIME_REPO: ${{ github.workspace }}/onnxruntime
ONNX_RUNTIME_BUILD_DIR: ${{ github.workspace }}/onnxruntime/build
- ONNX_RUNTIME_UTILS: ${{ github.workspace }}/openvino/src/frontends/onnx/tests/ci_utils/onnxruntime
+ ONNX_RUNTIME_UTILS: ${{ github.workspace }}/src/frontends/onnx/tests/ci_utils/onnxruntime
steps:
- - name: Download OpenVINO package
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
- with:
- name: openvino_package
- path: ${{ env.INSTALL_DIR }}
-
- # Needed as ${{ github.workspace }} is not working correctly when using Docker
- - name: Setup Variables
- run: |
- echo "INSTALL_DIR=$GITHUB_WORKSPACE/install" >> "$GITHUB_ENV"
- echo "ONNX_RUNTIME_REPO=$GITHUB_WORKSPACE/onnxruntime" >> "$GITHUB_ENV"
- echo "ONNX_RUNTIME_BUILD_DIR=$GITHUB_WORKSPACE/onnxruntime/build" >> "$GITHUB_ENV"
-
- - name: Extract OpenVINO package
- run: |
- pushd ${INSTALL_DIR}
- pigz -dc openvino_package.tar.gz | tar -xf - -C ${INSTALL_DIR}
- popd
-
- name: Fetch ONNX runtime version and skip tests list
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
timeout-minutes: 15
@@ -69,8 +54,7 @@ jobs:
sparse-checkout: |
src/frontends/onnx/tests/ci_utils/onnxruntime
sparse-checkout-cone-mode: false
- path: ${{ env.OPENVINO_REPO }}
-
+
- name: Get ONNX runtime version
run: |
hash=`tr -s '\n ' < ./version`
@@ -85,6 +69,16 @@ jobs:
path: ${{ env.ONNX_RUNTIME_REPO }}
ref: ${{ env.ONNX_RUNTIME_VERSION }}
submodules: 'recursive'
+
+ - name: Download OpenVINO package
+ uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
+ with:
+ name: openvino_package
+ path: ${{ env.INSTALL_DIR }}
+
+ - name: Extract OpenVINO package
+ run: pigz -dc openvino_package.tar.gz | tar -xf - -v
+ working-directory: ${{ env.INSTALL_DIR }}
#
# Tests
diff --git a/.github/workflows/job_openvino_js.yml b/.github/workflows/job_openvino_js.yml
index a8f8c914f86..ac90c0b73d9 100644
--- a/.github/workflows/job_openvino_js.yml
+++ b/.github/workflows/job_openvino_js.yml
@@ -7,11 +7,11 @@ on:
description: 'Machine on which the tests would run'
type: string
required: true
- container:
- description: 'JSON to be converted to the value of the "container" configuration for the job'
+ image:
+ description: 'Docker image to use for the job'
type: string
required: false
- default: '{"image": null}'
+ default: null
permissions: read-all
@@ -20,14 +20,18 @@ jobs:
name: OpenVINO JS API
timeout-minutes: 10
runs-on: ${{ inputs.runner }}
- container: ${{ fromJSON(inputs.container) }}
+ container:
+ image: ${{ inputs.image }}
+ volumes:
+ - /mount:/mount
+ - ${{ github.workspace }}:${{ github.workspace }} # Needed as ${{ github.workspace }} is not working correctly when using Docker
defaults:
run:
shell: bash
env:
DEBIAN_FRONTEND: noninteractive # to prevent apt-get from waiting user input
- OPENVINO_JS_DIR: ${{ github.workspace }}/openvino/src/bindings/js/node
- OPENVINO_JS_LIBS_DIR: ${{ github.workspace }}/openvino/src/bindings/js/node/bin
+ OPENVINO_JS_DIR: ${{ github.workspace }}/src/bindings/js/node
+ OPENVINO_JS_LIBS_DIR: ${{ github.workspace }}/src/bindings/js/node/bin
NODE_VERSION: 21
DISPLAY: ':99'
steps:
@@ -37,18 +41,11 @@ jobs:
with:
sparse-checkout: |
src/bindings/js
- path: 'openvino'
- name: Install OpenVINO dependencies (mac)
if: runner.os == 'macOS'
run: brew install pigz
- # Needed as ${{ github.workspace }} is not working correctly when using Docker
- - name: Setup Variables
- run: |
- echo "OPENVINO_JS_DIR=$GITHUB_WORKSPACE/openvino/src/bindings/js/node" >> "$GITHUB_ENV"
- echo "OPENVINO_JS_LIBS_DIR=$GITHUB_WORKSPACE/openvino/src/bindings/js/node/bin" >> "$GITHUB_ENV"
-
- name: Download OpenVINO artifacts (JS)
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
@@ -57,7 +54,7 @@ jobs:
merge-multiple: true
- name: Extract OpenVINO packages
- run: pigz -dc openvino_js_package.tar.gz | tar -xf - -C ${OPENVINO_JS_LIBS_DIR}
+ run: pigz -dc openvino_js_package.tar.gz | tar -xf - -v
working-directory: ${{ env.OPENVINO_JS_LIBS_DIR }}
- name: Setup Node ${{ env.NODE_VERSION }}
diff --git a/.github/workflows/job_python_api_tests.yml b/.github/workflows/job_python_api_tests.yml
index 99d286a4579..f15ae8ca6a3 100644
--- a/.github/workflows/job_python_api_tests.yml
+++ b/.github/workflows/job_python_api_tests.yml
@@ -7,11 +7,11 @@ on:
description: 'Machine on which the tests would run'
type: string
required: true
- container:
- description: 'JSON to be converted to the value of the "container" configuration for the job'
+ image:
+ description: 'Docker image to use for the job'
type: string
required: false
- default: '{"image": null}'
+ default: null
affected-components:
description: 'Components that are affected by changes in the commit defined by the Smart CI Action'
type: string
@@ -32,55 +32,50 @@ jobs:
if: ${{ fromJSON(inputs.affected-components).Python_API.test || fromJSON(inputs.affected-components).docs_snippets.test }}
timeout-minutes: 30
runs-on: ${{ inputs.runner }}
- container: ${{ fromJSON(inputs.container) }}
+ container:
+ image: ${{ inputs.image }}
+ volumes:
+ - /mount:/mount
+ - ${{ github.workspace }}:${{ github.workspace }} # Needed as ${{ github.workspace }} is not working correctly when using Docker
defaults:
run:
shell: bash
env:
DEBIAN_FRONTEND: noninteractive # to prevent apt-get from waiting user input
- OPENVINO_REPO: ${{ github.workspace }}/openvino
INSTALL_DIR: ${{ github.workspace }}/install
- INSTALL_TEST_DIR: ${{ github.workspace }}/install/openvino_tests
- INSTALL_WHEELS_DIR: ${{ github.workspace }}/install/openvino_wheels
+ INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
+
steps:
+ # checkout action cleans up the workspace and have to be the first step
+ - name: Fetch setup_python and install wheels actions
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+ timeout-minutes: 15
+ with:
+ sparse-checkout: |
+ .github/actions
+ docs/articles_en/assets/snippets
+ src/bindings/python/scripts/generate_pyapi_stubs.py
+ src/bindings/python/**/*.pyi
+ sparse-checkout-cone-mode: false
+ submodules: 'false'
+
- name: Download OpenVINO artifacts (tarballs and wheels)
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
pattern: openvino_@(wheels|tests)
path: ${{ env.INSTALL_DIR }}
-
- # Needed as ${{ github.workspace }} is not working correctly when using Docker
- - name: Setup Variables
- run: |
- echo "OPENVINO_REPO=$GITHUB_WORKSPACE/openvino" >> "$GITHUB_ENV"
- echo "INSTALL_DIR=$GITHUB_WORKSPACE/install" >> "$GITHUB_ENV"
- echo "INSTALL_TEST_DIR=$GITHUB_WORKSPACE/install/openvino_tests" >> "$GITHUB_ENV"
- echo "INSTALL_WHEELS_DIR=$GITHUB_WORKSPACE/install/openvino_wheels" >> "$GITHUB_ENV"
+ merge-multiple: true
- name: Install OpenVINO dependencies (mac)
if: runner.os == 'macOS'
run: brew install pigz
- name: Extract OpenVINO packages
- run: pigz -dc openvino_tests.tar.gz | tar -xf - -C ${INSTALL_TEST_DIR}
- working-directory: ${{ env.INSTALL_TEST_DIR }}
-
- - name: Fetch setup_python and install wheels actions
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- timeout-minutes: 15
- with:
- sparse-checkout: |
- .github/actions/setup_python/action.yml
- .github/actions/install_ov_wheels/action.yml
- .github/actions/validate_pyi_files/action.yml
- .github/actions/validate_pyi_files/compare_pyi_files.py
- src/bindings/python/scripts/generate_pyapi_stubs.py
- src/bindings/python/**/*.pyi
- sparse-checkout-cone-mode: false
- path: 'action_root'
+ run: pigz -dc openvino_tests.tar.gz | tar -xf - -v
+ working-directory: ${{ env.INSTALL_DIR }}
- name: Setup Python ${{ inputs.python-version }}
- uses: ./action_root/.github/actions/setup_python
+ uses: ./.github/actions/setup_python
with:
version: ${{ inputs.python-version }}
pip-cache-path: ${{ runner.os == 'Linux' && env.PIP_CACHE_PATH || '' }}
@@ -91,16 +86,16 @@ jobs:
# Tests
#
- name: Install OpenVINO Python wheels
- uses: ./action_root/.github/actions/install_ov_wheels
+ uses: ./.github/actions/install_ov_wheels
with:
- wheels-dir-path: ${{ env.INSTALL_WHEELS_DIR }}
+ wheels-dir-path: ${{ env.INSTALL_DIR }}
wheels-to-install: 'openvino'
- name: Install Python API tests dependencies
- run: python3 -m pip install -r ${INSTALL_TEST_DIR}/tests/bindings/python/requirements_test.txt
+ run: python3 -m pip install -r ${INSTALL_TEST_DIR}/bindings/python/requirements_test.txt
- name: Verify Python stub .pyi files
- uses: ./action_root/.github/actions/validate_pyi_files
+ uses: ./.github/actions/validate_pyi_files
continue-on-error: true
#
@@ -111,42 +106,33 @@ jobs:
if: fromJSON(inputs.affected-components).Python_API.test
run: |
# for 'template' extension
- export LD_LIBRARY_PATH=${INSTALL_TEST_DIR}/tests/:$LD_LIBRARY_PATH
- python3 -m pytest -sv ${INSTALL_TEST_DIR}/tests/pyopenvino \
+ export LD_LIBRARY_PATH=${INSTALL_TEST_DIR}/:$LD_LIBRARY_PATH
+ python3 -m pytest -sv ${INSTALL_TEST_DIR}/pyopenvino \
--junitxml=${INSTALL_TEST_DIR}/TEST-Pyngraph.xml \
- --ignore=${INSTALL_TEST_DIR}/tests/pyopenvino/tests/test_utils/test_utils.py
+ --ignore=${INSTALL_TEST_DIR}/pyopenvino/tests/test_utils/test_utils.py
- name: Python API Tests -- numpy<2.0.0
if: fromJSON(inputs.affected-components).Python_API.test
run: |
python3 -m pip uninstall -y numpy
python3 -m pip install "numpy~=1.26.0"
- python3 -m pip install -r ${INSTALL_TEST_DIR}/tests/bindings/python/requirements_test.txt
+ python3 -m pip install -r ${INSTALL_TEST_DIR}/bindings/python/requirements_test.txt
# for 'template' extension
- export LD_LIBRARY_PATH=${INSTALL_TEST_DIR}/tests/:$LD_LIBRARY_PATH
- python3 -m pytest -sv ${INSTALL_TEST_DIR}/tests/pyopenvino \
+ export LD_LIBRARY_PATH=${INSTALL_TEST_DIR}/:$LD_LIBRARY_PATH
+ python3 -m pytest -sv ${INSTALL_TEST_DIR}/pyopenvino \
--junitxml=${INSTALL_TEST_DIR}/TEST-Pyngraph_new_numpy.xml \
- --ignore=${INSTALL_TEST_DIR}/tests/pyopenvino/tests/test_utils/test_utils.py
-
- - name: Clone API snippets
- if: ${{ runner.os != 'macOS' && fromJSON(inputs.affected-components).docs_snippets.test }}
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- timeout-minutes: 15
- with:
- sparse-checkout: docs/articles_en/assets/snippets
- path: ${{ env.OPENVINO_REPO }}
- submodules: 'false'
+ --ignore=${INSTALL_TEST_DIR}/pyopenvino/tests/test_utils/test_utils.py
- name: Docs Python snippets
if: ${{ runner.os != 'macOS' && fromJSON(inputs.affected-components).docs_snippets.test }}
run: |
# torch, onnx
- python3 -m pip install -r ${INSTALL_TEST_DIR}/tests/python/preprocess/torchvision/requirements.txt -r ${INSTALL_TEST_DIR}/tests/requirements_onnx
+ python3 -m pip install -r ${INSTALL_TEST_DIR}/python/preprocess/torchvision/requirements.txt -r ${INSTALL_TEST_DIR}/requirements_onnx
# to find 'snippets' module in docs
- export PYTHONPATH=${OPENVINO_REPO}/docs/articles_en/assets
+ export PYTHONPATH=docs/articles_en/assets
# for 'template' extension
- export LD_LIBRARY_PATH=${INSTALL_TEST_DIR}/tests/:$LD_LIBRARY_PATH
- python3 ${OPENVINO_REPO}/docs/articles_en/assets/snippets/main.py
+ export LD_LIBRARY_PATH=${INSTALL_TEST_DIR}/:$LD_LIBRARY_PATH
+ python3 docs/articles_en/assets/snippets/main.py
- name: Upload Test Results
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
diff --git a/.github/workflows/job_python_unit_tests.yml b/.github/workflows/job_python_unit_tests.yml
index 2135406ad35..a78aad0c3f8 100644
--- a/.github/workflows/job_python_unit_tests.yml
+++ b/.github/workflows/job_python_unit_tests.yml
@@ -7,11 +7,11 @@ on:
description: 'Machine on which the tests would run'
type: string
required: true
- container:
- description: 'JSON to be converted to the value of the "container" configuration for the job'
+ image:
+ description: 'Docker image to use for the job'
type: string
required: false
- default: '{"image": null}'
+ default: null
affected-components:
description: 'Components that are affected by changes in the commit defined by the Smart CI Action'
type: string
@@ -31,62 +31,46 @@ jobs:
name: Python unit tests
timeout-minutes: 70
runs-on: ${{ inputs.runner }}
- container: ${{ fromJSON(inputs.container) }}
+ container:
+ image: ${{ inputs.image }}
+ volumes:
+ - /mount:/mount
+ - ${{ github.workspace }}:${{ github.workspace }} # Needed as ${{ github.workspace }} is not working correctly when using Docker
defaults:
run:
shell: bash
env:
DEBIAN_FRONTEND: noninteractive # to prevent apt-get from waiting user input
- OPENVINO_REPO: ${{ github.workspace }}/openvino
INSTALL_DIR: ${{ github.workspace }}/install
- INSTALL_WHEELS_DIR: ${{ github.workspace }}/install/wheels
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
- LAYER_TESTS_INSTALL_DIR: ${{ github.workspace }}/install/tests/layer_tests
steps:
-
- - name: Download OpenVINO artifacts (tarballs)
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
+ # checkout action cleans up the workspace and have to be the first step
+ - name: Fetch custom actions
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+ timeout-minutes: 15
with:
- pattern: openvino_[tests]*
- path: ${{ env.INSTALL_DIR }}
- merge-multiple: true
-
- - name: Download OpenVINO artifacts (wheels)
+ sparse-checkout: |
+ .github/actions
+ sparse-checkout-cone-mode: false
+ submodules: 'false'
+
+ - name: Download OpenVINO artifacts (tarballs and wheels)
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
- pattern: openvino_[wheels]*
- path: ${{ env.INSTALL_WHEELS_DIR }}
+ pattern: openvino_@(wheels|tests)
+ path: ${{ env.INSTALL_DIR }}
merge-multiple: true
- # Needed as ${{ github.workspace }} is not working correctly when using Docker
- - name: Setup Variables
- run: |
- echo "OPENVINO_REPO=$GITHUB_WORKSPACE/openvino" >> "$GITHUB_ENV"
- echo "INSTALL_DIR=$GITHUB_WORKSPACE/install" >> "$GITHUB_ENV"
- echo "INSTALL_TEST_DIR=$GITHUB_WORKSPACE/install/tests" >> "$GITHUB_ENV"
- echo "LAYER_TESTS_INSTALL_DIR=$GITHUB_WORKSPACE/install/tests/layer_tests" >> "$GITHUB_ENV"
- echo "INSTALL_WHEELS_DIR=$GITHUB_WORKSPACE/install/wheels" >> "$GITHUB_ENV"
-
- name: Install OpenVINO dependencies (mac)
if: runner.os == 'macOS'
run: brew install pigz
- name: Extract OpenVINO packages
- run: pigz -dc openvino_tests.tar.gz | tar -xf - -C ${INSTALL_DIR}
+ run: pigz -dc openvino_tests.tar.gz | tar -xf - -v
working-directory: ${{ env.INSTALL_DIR }}
- - name: Fetch setup_python and install wheels actions
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- timeout-minutes: 15
- with:
- sparse-checkout: |
- .github/actions/setup_python/action.yml
- .github/actions/install_ov_wheels/action.yml
- sparse-checkout-cone-mode: false
- path: 'action_root'
-
- name: Setup Python ${{ inputs.python-version }}
- uses: ./action_root/.github/actions/setup_python
+ uses: ./.github/actions/setup_python
with:
version: ${{ inputs.python-version }}
pip-cache-path: ${{ runner.os == 'Linux' && env.PIP_CACHE_PATH || '' }}
@@ -94,9 +78,9 @@ jobs:
self-hosted-runner: ${{ runner.os == 'Linux' }}
- name: Install OpenVINO Python wheels
- uses: ./action_root/.github/actions/install_ov_wheels
+ uses: ./.github/actions/install_ov_wheels
with:
- wheels-dir-path: ${{ env.INSTALL_WHEELS_DIR }}
+ wheels-dir-path: ${{ env.INSTALL_DIR }}
wheels-to-install: 'openvino'
- name: Install Python API tests dependencies
@@ -111,7 +95,7 @@ jobs:
python3 -m pip install -r ${INSTALL_TEST_DIR}/python/preprocess/torchvision/requirements.txt
# layer test requirements
- python3 -m pip install -r ${LAYER_TESTS_INSTALL_DIR}/requirements.txt
+ python3 -m pip install -r ${INSTALL_TEST_DIR}/layer_tests/requirements.txt
- name: Install ONNX tests dependencies
run: |
@@ -149,7 +133,7 @@ jobs:
export LD_PRELOAD=${GOMP_LIB}
fi
- python3 -m pytest ${LAYER_TESTS_INSTALL_DIR}/ovc_python_api_tests -n logical --junitxml=${INSTALL_TEST_DIR}/TEST-test_ovc_convert.xml
+ python3 -m pytest ${INSTALL_TEST_DIR}/layer_tests/ovc_python_api_tests -n logical --junitxml=${INSTALL_TEST_DIR}/TEST-test_ovc_convert.xml
env:
TEST_DEVICE: CPU
TEST_PRECISION: FP16
@@ -160,11 +144,11 @@ jobs:
run: |
# to allow 'libtest_builtin_extensions.so' to find 'libopenvino_onnx_frontend.so'
export LD_LIBRARY_PATH=${PIP_INSTALL_PATH}/openvino/libs:$LD_LIBRARY_PATH
- python3 -m pytest ${LAYER_TESTS_INSTALL_DIR}/py_frontend_tests --junitxml=${INSTALL_TEST_DIR}/TEST-test_py_fontend.xml
+ python3 -m pytest ${INSTALL_TEST_DIR}/layer_tests/py_frontend_tests --junitxml=${INSTALL_TEST_DIR}/TEST-test_py_fontend.xml
- name: TensorFlow Lite Layer Tests - TFL FE
if: fromJSON(inputs.affected-components).TFL_FE.test
- run: python3 -m pytest ${LAYER_TESTS_INSTALL_DIR}/tensorflow_lite_tests/ -n logical --junitxml=${INSTALL_TEST_DIR}/TEST-tfl_fe.xml
+ run: python3 -m pytest ${INSTALL_TEST_DIR}/layer_tests/tensorflow_lite_tests/ -n logical --junitxml=${INSTALL_TEST_DIR}/TEST-tfl_fe.xml
env:
TEST_DEVICE: CPU
TEST_PRECISION: FP16
diff --git a/.github/workflows/job_pytorch_fx_layer_tests.yml b/.github/workflows/job_pytorch_fx_layer_tests.yml
index e3d620d7bff..0ce303f35d9 100644
--- a/.github/workflows/job_pytorch_fx_layer_tests.yml
+++ b/.github/workflows/job_pytorch_fx_layer_tests.yml
@@ -7,11 +7,11 @@ on:
description: 'Machine on which the tests would run'
type: string
required: true
- container:
- description: 'JSON to be converted to the value of the "container" configuration for the job'
+ image:
+ description: 'Docker image to use for the job'
type: string
required: false
- default: '{"image": null}'
+ default: null
affected-components:
description: 'Components that are affected by changes in the commit defined by the Smart CI Action'
type: string
@@ -32,7 +32,12 @@ jobs:
name: PyTorch FX Layer Tests
timeout-minutes: 60
runs-on: ${{ inputs.runner }}
- container: ${{ fromJSON(inputs.container) }}
+ container:
+ image: ${{ inputs.image }}
+ volumes:
+ - /mount:/mount
+ - ${{ github.workspace }}:${{ github.workspace }} # Needed as ${{ github.workspace }} is not working correctly when using Docker
+ options: "-e HF_TOKEN" # Needed for HuggingFace cache authentication
defaults:
run:
shell: ${{ contains(inputs.runner, 'win') && 'pwsh' || 'bash' }}
@@ -41,35 +46,24 @@ jobs:
OPENVINO_REPO: ${{ github.workspace }}/openvino
INSTALL_DIR: ${{ github.workspace }}/install
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
- INSTALL_WHEELS_DIR: ${{ github.workspace }}/install/wheels
- LAYER_TESTS_INSTALL_DIR: ${{ github.workspace }}/install/tests/layer_tests
USE_SYSTEM_CACHE: False # Using remote HuggingFace cache
steps:
- - name: Download OpenVINO artifacts (tarballs)
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
+ - name: Fetch setup_python and install wheels actions
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+ timeout-minutes: 15
with:
- pattern: openvino_[tests]*
- path: ${{ env.INSTALL_DIR }}
- merge-multiple: true
-
- - name: Download OpenVINO artifacts (wheels)
+ sparse-checkout: |
+ .github/actions
+ sparse-checkout-cone-mode: false
+ submodules: 'false'
+
+ - name: Download OpenVINO artifacts (tarballs and wheels)
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
- pattern: openvino_[wheels]*
- path: ${{ env.INSTALL_WHEELS_DIR }}
+ pattern: openvino_@(wheels|tests)
+ path: ${{ env.INSTALL_DIR }}
merge-multiple: true
- # Needed as ${{ github.workspace }} is not working correctly when using Docker
- - name: Setup Variables
- if: runner.os != 'Windows'
- run: |
- echo "OPENVINO_REPO=$GITHUB_WORKSPACE/openvino" >> "$GITHUB_ENV"
- echo "INSTALL_DIR=$GITHUB_WORKSPACE/install" >> "$GITHUB_ENV"
- echo "INSTALL_TEST_DIR=$GITHUB_WORKSPACE/install/tests" >> "$GITHUB_ENV"
- echo "INSTALL_WHEELS_DIR=$GITHUB_WORKSPACE/install/wheels" >> "$GITHUB_ENV"
- echo "LAYER_TESTS_INSTALL_DIR=$GITHUB_WORKSPACE/install/tests/layer_tests" >> "$GITHUB_ENV"
- echo "HF_HUB_CACHE=/mount/caches/huggingface" >> "$GITHUB_ENV"
-
- name: Setup HuggingFace Cache Directory (Windows)
if: runner.os == 'Windows'
run: Add-Content -Path $env:GITHUB_ENV -Value "HF_HUB_CACHE=C:\\mount\\caches\\huggingface"
@@ -80,28 +74,16 @@ jobs:
- name: Extract OpenVINO packages (Linux, macOS)
if: runner.os != 'Windows'
- run: |
- pigz -dc openvino_tests.tar.gz | tar -xf - -C ${INSTALL_DIR}
+ run: pigz -dc openvino_tests.tar.gz | tar -xf - -v
working-directory: ${{ env.INSTALL_DIR }}
- name: Extract OpenVINO artifacts (Windows)
if: runner.os == 'Windows'
- run: |
- Expand-Archive openvino_tests.zip -DestinationPath ${{ env.INSTALL_DIR }}
+ run: Expand-Archive openvino_tests.zip -DestinationPath . -Verbose
working-directory: ${{ env.INSTALL_DIR }}
- - name: Fetch setup_python and install wheels actions
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- timeout-minutes: 15
- with:
- sparse-checkout: |
- .github/actions/setup_python/action.yml
- .github/actions/install_ov_wheels/action.yml
- sparse-checkout-cone-mode: false
- path: 'openvino'
-
- name: Setup Python ${{ inputs.python-version }}
- uses: ./openvino/.github/actions/setup_python
+ uses: ./.github/actions/setup_python
with:
version: ${{ inputs.python-version }}
pip-cache-path: ${{ runner.os == 'Linux' && env.PIP_CACHE_PATH_LINUX || env.PIP_CACHE_PATH_WIN }}
@@ -109,9 +91,9 @@ jobs:
self-hosted-runner: ${{ runner.os != 'macOS' }}
- name: Install OpenVINO Python wheels
- uses: ./openvino/.github/actions/install_ov_wheels
+ uses: ./.github/actions/install_ov_wheels
with:
- wheels-dir-path: ${{ env.INSTALL_WHEELS_DIR }}
+ wheels-dir-path: ${{ env.INSTALL_DIR }}
wheels-to-install: 'openvino'
- name: Install Pytorch FX Layer tests dependencies
@@ -122,7 +104,7 @@ jobs:
- name: PyTorch torch.compile TORCHFX Layer Tests
if: ${{ fromJSON(inputs.affected-components).PyTorch_FE.test && runner.os != 'macOS' && runner.arch != 'ARM64' && runner.os != 'Windows' }} # Ticket: 126287
run: |
- python3 -m pytest ${{ env.LAYER_TESTS_INSTALL_DIR }}/pytorch_tests -m precommit_fx_backend -v --junitxml=${{ env.INSTALL_TEST_DIR }}/TEST-pytorch_compile.xml
+ python3 -m pytest ${{ env.INSTALL_TEST_DIR }}/layer_tests/pytorch_tests -m precommit_fx_backend -v --junitxml=${{ env.INSTALL_TEST_DIR }}/TEST-pytorch_compile.xml
env:
TEST_DEVICE: CPU
TEST_PRECISION: FP32
diff --git a/.github/workflows/job_pytorch_layer_tests.yml b/.github/workflows/job_pytorch_layer_tests.yml
index 040273571be..3259083aba1 100644
--- a/.github/workflows/job_pytorch_layer_tests.yml
+++ b/.github/workflows/job_pytorch_layer_tests.yml
@@ -7,11 +7,11 @@ on:
description: 'Machine on which the tests would run'
type: string
required: true
- container:
- description: 'JSON to be converted to the value of the "container" configuration for the job'
+ image:
+ description: 'Docker image to use for the job'
type: string
required: false
- default: '{"image": null}'
+ default: null
affected-components:
description: 'Components that are affected by changes in the commit defined by the Smart CI Action'
type: string
@@ -32,47 +32,41 @@ jobs:
name: PyTorch Layer Tests
timeout-minutes: 60
runs-on: ${{ inputs.runner }}
- container: ${{ fromJSON(inputs.container) }}
+ container:
+ image: ${{ inputs.image }}
+ volumes:
+ - /mount:/mount
+ - ${{ github.workspace }}:${{ github.workspace }} # Needed as ${{ github.workspace }} is not working correctly when using Docker
+ options: "-e HF_TOKEN" # Needed for HuggingFace cache authentication
defaults:
run:
shell: ${{ contains(inputs.runner, 'win') && 'pwsh' || 'bash' }}
env:
DEBIAN_FRONTEND: noninteractive # to prevent apt-get from waiting user input
- OPENVINO_REPO: ${{ github.workspace }}/openvino
INSTALL_DIR: ${{ github.workspace }}/install
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
- INSTALL_WHEELS_DIR: ${{ github.workspace }}/install/wheels
LAYER_TESTS_INSTALL_DIR: ${{ github.workspace }}/install/tests/layer_tests
USE_SYSTEM_CACHE: False # Using remote HuggingFace cache
steps:
- - name: Download OpenVINO artifacts (tarballs)
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
+ - name: Fetch setup_python and install wheels actions
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+ timeout-minutes: 15
with:
- pattern: openvino_[tests]*
- path: ${{ env.INSTALL_DIR }}
- merge-multiple: true
-
- - name: Download OpenVINO artifacts (wheels)
+ sparse-checkout: |
+ .github/actions
+ sparse-checkout-cone-mode: false
+ submodules: 'false'
+
+ - name: Download OpenVINO artifacts (tarballs and wheels)
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
- pattern: openvino_[wheels]*
- path: ${{ env.INSTALL_WHEELS_DIR }}
+ pattern: openvino_@(wheels|tests)
+ path: ${{ env.INSTALL_DIR }}
merge-multiple: true
- # Needed as ${{ github.workspace }} is not working correctly when using Docker
- name: Setup Variables
- if: runner.os != 'Windows'
run: |
- echo "OPENVINO_REPO=$GITHUB_WORKSPACE/openvino" >> "$GITHUB_ENV"
- echo "INSTALL_DIR=$GITHUB_WORKSPACE/install" >> "$GITHUB_ENV"
- echo "INSTALL_TEST_DIR=$GITHUB_WORKSPACE/install/tests" >> "$GITHUB_ENV"
- echo "INSTALL_WHEELS_DIR=$GITHUB_WORKSPACE/install/wheels" >> "$GITHUB_ENV"
- echo "LAYER_TESTS_INSTALL_DIR=$GITHUB_WORKSPACE/install/tests/layer_tests" >> "$GITHUB_ENV"
- echo "HF_HUB_CACHE=/mount/caches/huggingface" >> "$GITHUB_ENV"
-
- - name: Setup HuggingFace Cache Directory (Windows)
- if: runner.os == 'Windows'
- run: Add-Content -Path $env:GITHUB_ENV -Value "HF_HUB_CACHE=C:\\mount\\caches\\huggingface"
+ echo "HF_HUB_CACHE=${{ runner.os == 'Linux' && env.HF_HUB_CACHE_LIN || env.HF_HUB_CACHE_WIN }}" >> "$GITHUB_ENV"
- name: Install OpenVINO dependencies (mac)
if: runner.os == 'macOS'
@@ -80,28 +74,16 @@ jobs:
- name: Extract OpenVINO packages (Linux, macOS)
if: runner.os != 'Windows'
- run: |
- pigz -dc openvino_tests.tar.gz | tar -xf - -C ${INSTALL_DIR}
+ run: pigz -dc openvino_tests.tar.gz | tar -xf - -v
working-directory: ${{ env.INSTALL_DIR }}
- name: Extract OpenVINO artifacts (Windows)
if: runner.os == 'Windows'
- run: |
- Expand-Archive openvino_tests.zip -DestinationPath ${{ env.INSTALL_DIR }}
+ run: Expand-Archive openvino_tests.zip -DestinationPath . -Verbose
working-directory: ${{ env.INSTALL_DIR }}
- - name: Fetch setup_python and install wheels actions
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- timeout-minutes: 15
- with:
- sparse-checkout: |
- .github/actions/setup_python/action.yml
- .github/actions/install_ov_wheels/action.yml
- sparse-checkout-cone-mode: false
- path: 'openvino'
-
- name: Setup Python ${{ inputs.python-version }}
- uses: ./openvino/.github/actions/setup_python
+ uses: ./.github/actions/setup_python
with:
version: ${{ inputs.python-version }}
pip-cache-path: ${{ runner.os == 'Linux' && env.PIP_CACHE_PATH_LINUX || env.PIP_CACHE_PATH_WIN }}
@@ -109,9 +91,9 @@ jobs:
self-hosted-runner: ${{ runner.os != 'macOS' }}
- name: Install OpenVINO Python wheels
- uses: ./openvino/.github/actions/install_ov_wheels
+ uses: ./.github/actions/install_ov_wheels
with:
- wheels-dir-path: ${{ env.INSTALL_WHEELS_DIR }}
+ wheels-dir-path: ${{ env.INSTALL_DIR }}
wheels-to-install: 'openvino'
- name: Install Pytorch Layer tests dependencies
diff --git a/.github/workflows/job_pytorch_models_tests.yml b/.github/workflows/job_pytorch_models_tests.yml
index bf14d2aec85..171fb7f8568 100644
--- a/.github/workflows/job_pytorch_models_tests.yml
+++ b/.github/workflows/job_pytorch_models_tests.yml
@@ -7,11 +7,11 @@ on:
description: 'Machine on which the tests would run'
type: string
required: true
- container:
- description: 'JSON to be converted to the value of the "container" configuration for the job'
+ image:
+ description: 'Docker image to use for the job'
type: string
required: false
- default: '{"image": null}'
+ default: null
model_scope:
description: 'Scope of models for testing.'
type: string
@@ -24,74 +24,57 @@ jobs:
name: PyTorch Models tests
timeout-minutes: ${{ inputs.model_scope == 'precommit' && 70 || 400 }}
runs-on: ${{ inputs.runner }}
- container: ${{ fromJSON(inputs.container) }}
+ container:
+ image: ${{ inputs.image }}
+ volumes:
+ - /mount:/mount
+ - ${{ github.workspace }}:${{ github.workspace }} # Needed as ${{ github.workspace }} is not working correctly when using Docker
+ options: "-e HF_TOKEN" # Needed for HuggingFace cache authentication
defaults:
run:
shell: bash
env:
DEBIAN_FRONTEND: noninteractive # to prevent apt-get from waiting user input
- OPENVINO_REPO: ${{ github.workspace }}/openvino
INSTALL_DIR: ${{ github.workspace }}/install
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
- INSTALL_WHEELS_DIR: ${{ github.workspace }}/install/wheels
MODEL_HUB_TESTS_INSTALL_DIR: ${{ github.workspace }}/install/tests/model_hub_tests
USE_SYSTEM_CACHE: False # Using remote HuggingFace cache
steps:
- - name: Download OpenVINO artifacts (tarballs)
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
+ - name: Fetch setup_python and install wheels actions
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+ timeout-minutes: 15
with:
- pattern: openvino_[tests]*
- path: ${{ env.INSTALL_DIR }}
- merge-multiple: true
-
- - name: Download OpenVINO artifacts (wheels)
+ sparse-checkout: |
+ .github/actions
+ sparse-checkout-cone-mode: false
+ submodules: 'false'
+
+ - name: Download OpenVINO artifacts (tarballs and wheels)
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
- pattern: openvino_[wheels|tokenizers_wheel]*
- path: ${{ env.INSTALL_WHEELS_DIR }}
+ pattern: openvino_@(wheels|tests|tokenizers_wheel)
+ path: ${{ env.INSTALL_DIR }}
merge-multiple: true
- # Needed as ${{ github.workspace }} is not working correctly when using Docker
- - name: Setup Variables
- if: ${{ contains(inputs.runner, 'aks') }} # Do not setup variables for GitHub-hosted runners
- run: |
- echo "OPENVINO_REPO=$GITHUB_WORKSPACE/openvino" >> "$GITHUB_ENV"
- echo "INSTALL_DIR=$GITHUB_WORKSPACE/install" >> "$GITHUB_ENV"
- echo "INSTALL_TEST_DIR=$GITHUB_WORKSPACE/install/tests" >> "$GITHUB_ENV"
- echo "INSTALL_WHEELS_DIR=$GITHUB_WORKSPACE/install/wheels" >> "$GITHUB_ENV"
- echo "MODEL_HUB_TESTS_INSTALL_DIR=$GITHUB_WORKSPACE/install/tests/model_hub_tests" >> "$GITHUB_ENV"
- echo "HF_HUB_CACHE=/mount/caches/huggingface" >> "$GITHUB_ENV"
-
- name: Setup HuggingFace Cache Directory (Windows)
if: runner.os == 'Windows'
run: Add-Content -Path $env:GITHUB_ENV -Value "HF_HUB_CACHE=C:\\mount\\caches\\huggingface"
- name: Extract OpenVINO artifacts
- run: |
- pigz -dc openvino_tests.tar.gz | tar -xf - -C ${INSTALL_DIR}
+ run: pigz -dc openvino_tests.tar.gz | tar -xf - -v
working-directory: ${{ env.INSTALL_DIR }}
- - name: Fetch setup_python and install wheels actions
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- timeout-minutes: 15
- with:
- sparse-checkout: |
- .github/actions/setup_python/action.yml
- .github/actions/install_ov_wheels/action.yml
- sparse-checkout-cone-mode: false
- path: 'openvino'
-
- name: Setup Python 3.11
- uses: ./openvino/.github/actions/setup_python
+ uses: ./.github/actions/setup_python
with:
version: '3.11'
should-setup-pip-paths: 'false'
self-hosted-runner: ${{ contains(inputs.runner, 'aks') }}
- name: Install OpenVINO Python wheels
- uses: ./openvino/.github/actions/install_ov_wheels
+ uses: ./.github/actions/install_ov_wheels
with:
- wheels-dir-path: ${{ env.INSTALL_WHEELS_DIR }}
+ wheels-dir-path: ${{ env.INSTALL_DIR }}
wheels-to-install: 'openvino openvino_tokenizers'
- name: Install PyTorch tests requirements
diff --git a/.github/workflows/job_samples_tests.yml b/.github/workflows/job_samples_tests.yml
index 7419706af6c..94acb400406 100644
--- a/.github/workflows/job_samples_tests.yml
+++ b/.github/workflows/job_samples_tests.yml
@@ -7,11 +7,11 @@ on:
description: 'Machine on which the tests would run'
type: string
required: true
- container:
- description: 'JSON to be converted to the value of the "container" configuration for the job'
+ image:
+ description: 'Docker image to use for the job'
type: string
required: false
- default: '{"image": null}'
+ default: null
affected-components:
description: 'Components that are affected by changes in the commit defined by the Smart CI Action'
type: string
@@ -23,7 +23,11 @@ jobs:
Samples:
timeout-minutes: 30
runs-on: ${{ inputs.runner }}
- container: ${{ fromJSON(inputs.container) }}
+ container:
+ image: ${{ inputs.image }}
+ volumes:
+ - /mount:/mount
+ - ${{ github.workspace }}:${{ github.workspace }} # Needed as ${{ github.workspace }} is not working correctly when using Docker
defaults:
run:
shell: bash
@@ -31,31 +35,25 @@ jobs:
DEBIAN_FRONTEND: noninteractive # to prevent apt-get from waiting user input
INSTALL_DIR: ${{ github.workspace }}/install
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
- INSTALL_WHEELS_DIR: ${{ github.workspace }}/install/wheels
BUILD_DIR: ${{ github.workspace }}/build
CMAKE_COMPILE_WARNING_AS_ERROR: 'ON'
steps:
- - name: Download OpenVINO artifacts (tarballs)
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
+ # checkout action cleans up the workspace and have to be the first step
+ - name: Fetch setup_python and install wheels actions
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+ timeout-minutes: 15
with:
- pattern: openvino_[package|tests]*
- path: ${{ env.INSTALL_DIR }}
- merge-multiple: true
-
- - name: Download OpenVINO artifacts (wheels)
+ sparse-checkout: |
+ .github/actions
+ sparse-checkout-cone-mode: false
+ submodules: 'false'
+
+ - name: Download OpenVINO artifacts (tarballs and wheels)
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
- pattern: openvino_[wheels]*
- path: ${{ env.INSTALL_WHEELS_DIR }}
- merge-multiple: true
-
- # Needed as ${{ github.workspace }} is not working correctly when using Docker
- - name: Setup Variables
- run: |
- echo "INSTALL_DIR=$GITHUB_WORKSPACE/install" >> "$GITHUB_ENV"
- echo "INSTALL_TEST_DIR=$GITHUB_WORKSPACE/install/tests" >> "$GITHUB_ENV"
- echo "BUILD_DIR=$GITHUB_WORKSPACE/build" >> "$GITHUB_ENV"
- echo "INSTALL_WHEELS_DIR=$GITHUB_WORKSPACE/install/wheels" >> "$GITHUB_ENV"
+ pattern: openvino_@(package|tests|wheels)
+ path: ${{ env.INSTALL_DIR }}
+ merge-multiple: true
- name: Install OpenVINO dependencies (mac)
if: runner.os == 'macOS'
@@ -63,24 +61,14 @@ jobs:
- name: Extract OpenVINO packages and tests
run: |
- pigz -dc openvino_package.tar.gz | tar -xf - -C ${INSTALL_DIR}
- pigz -dc openvino_tests.tar.gz | tar -xf - -C ${INSTALL_DIR}
+ pigz -dc openvino_package.tar.gz | tar -xf - -v
+ pigz -dc openvino_tests.tar.gz | tar -xf - -v
working-directory: ${{ env.INSTALL_DIR }}
- - name: Fetch setup_python and install wheels actions
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- timeout-minutes: 15
- with:
- sparse-checkout: |
- .github/actions/setup_python/action.yml
- .github/actions/install_ov_wheels/action.yml
- sparse-checkout-cone-mode: false
- path: 'openvino'
-
- name: Setup Python 3.11
# Python is already installed on Ubuntu within Dockerfile
if: runner.os != 'Linux'
- uses: ./openvino/.github/actions/setup_python
+ uses: ./.github/actions/setup_python
with:
version: '3.11'
should-setup-pip-paths: 'false'
@@ -109,9 +97,9 @@ jobs:
#
- name: Install OpenVINO Python wheels
- uses: ./openvino/.github/actions/install_ov_wheels
+ uses: ./.github/actions/install_ov_wheels
with:
- wheels-dir-path: ${{ env.INSTALL_WHEELS_DIR }}
+ wheels-dir-path: ${{ env.INSTALL_DIR }}
wheels-to-install: 'openvino'
- name: Samples tests
diff --git a/.github/workflows/job_tensorflow_layer_tests.yml b/.github/workflows/job_tensorflow_layer_tests.yml
index 88ede50898e..fc4d9cc4c27 100644
--- a/.github/workflows/job_tensorflow_layer_tests.yml
+++ b/.github/workflows/job_tensorflow_layer_tests.yml
@@ -7,11 +7,11 @@ on:
description: 'Machine on which the tests would run'
type: string
required: true
- container:
- description: 'JSON to be converted to the value of the "container" configuration for the job'
+ image:
+ description: 'Docker image to use for the job'
type: string
required: false
- default: '{"image": null}'
+ default: null
affected-components:
description: 'Components that are affected by changes in the commit defined by the Smart CI Action'
type: string
@@ -26,82 +26,65 @@ permissions: read-all
env:
PIP_CACHE_PATH_LINUX: /mount/caches/pip/linux
PIP_CACHE_PATH_WIN: "C:\\mount\\caches\\pip\\win"
+ HF_HUB_CACHE_LIN: /mount/caches/huggingface
+ HF_HUB_CACHE_WIN: "C:\\mount\\caches\\huggingface"
jobs:
TensorFlow_Layer_Tests:
name: TensorFlow Layer Tests
timeout-minutes: 60
runs-on: ${{ inputs.runner }}
- container: ${{ fromJSON(inputs.container) }}
+ container:
+ image: ${{ inputs.image }}
+ volumes:
+ - /mount:/mount
+ - ${{ github.workspace }}:${{ github.workspace }} # Needed as ${{ github.workspace }} is not working correctly when using Docker
+ options: "-e HF_TOKEN" # Needed for HuggingFace cache authentication
defaults:
run:
shell: ${{ contains(inputs.runner, 'win') && 'pwsh' || 'bash' }}
env:
DEBIAN_FRONTEND: noninteractive # to prevent apt-get from waiting user input
- OPENVINO_REPO: ${{ github.workspace }}/openvino
INSTALL_DIR: ${{ github.workspace }}/install
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
- INSTALL_WHEELS_DIR: ${{ github.workspace }}/install/wheels
- LAYER_TESTS_INSTALL_DIR: ${{ github.workspace }}/install/tests/layer_tests
USE_SYSTEM_CACHE: False # Using remote HuggingFace cache
steps:
- - name: Download OpenVINO artifacts (tarballs)
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
+ - name: Fetch custom actions
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+ timeout-minutes: 15
with:
- pattern: openvino_[tests]*
- path: ${{ env.INSTALL_DIR }}
- merge-multiple: true
+ sparse-checkout: |
+ .github/actions
+ sparse-checkout-cone-mode: false
+ submodules: 'false'
- - name: Download OpenVINO artifacts (wheels)
+ - name: Download OpenVINO artifacts (tarballs and wheels)
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
- pattern: openvino_[wheels|openvino_tokenizers]*
- path: ${{ env.INSTALL_WHEELS_DIR }}
+ pattern: openvino_@(wheels|tests|tokenizers_wheel)
+ path: ${{ env.INSTALL_DIR }}
merge-multiple: true
- # Needed as ${{ github.workspace }} is not working correctly when using Docker
- name: Setup Variables
- if: runner.os != 'Windows'
run: |
- echo "OPENVINO_REPO=$GITHUB_WORKSPACE/openvino" >> "$GITHUB_ENV"
- echo "INSTALL_DIR=$GITHUB_WORKSPACE/install" >> "$GITHUB_ENV"
- echo "INSTALL_TEST_DIR=$GITHUB_WORKSPACE/install/tests" >> "$GITHUB_ENV"
- echo "LAYER_TESTS_INSTALL_DIR=$GITHUB_WORKSPACE/install/tests/layer_tests" >> "$GITHUB_ENV"
- echo "INSTALL_WHEELS_DIR=$GITHUB_WORKSPACE/install/wheels" >> "$GITHUB_ENV"
- echo "HF_HUB_CACHE=/mount/caches/huggingface" >> "$GITHUB_ENV"
-
- - name: Setup HuggingFace Cache Directory (Windows)
- if: runner.os == 'Windows'
- run: Add-Content -Path $env:GITHUB_ENV -Value "HF_HUB_CACHE=C:\\mount\\caches\\huggingface"
+ echo "HF_HUB_CACHE=${{ runner.os == 'Linux' && env.HF_HUB_CACHE_LIN || env.HF_HUB_CACHE_WIN }}" >> "$GITHUB_ENV"
- name: Install OpenVINO dependencies (mac)
- if: runner.os == 'macOS'
+ if: ${{ runner.os == 'macOS' }}
run: brew install pigz
- name: Extract OpenVINO packages (Linux, macOS)
- if: runner.os != 'Windows'
- run: |
- pigz -dc openvino_tests.tar.gz | tar -xf - -C ${INSTALL_DIR}
+ if: ${{ runner.os != 'Windows' }}
+ run: pigz -dc openvino_tests.tar.gz | tar -xf - -v
working-directory: ${{ env.INSTALL_DIR }}
- name: Extract OpenVINO artifacts (Windows)
- if: runner.os == 'Windows'
- run: |
- Expand-Archive openvino_tests.zip -DestinationPath ${{ env.INSTALL_DIR }}
+ if: ${{ runner.os == 'Windows' }}
+ run: Expand-Archive openvino_tests.zip -DestinationPath . -Verbose
working-directory: ${{ env.INSTALL_DIR }}
- - name: Fetch setup_python and install wheels actions
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- timeout-minutes: 15
- with:
- sparse-checkout: |
- .github/actions/setup_python/action.yml
- .github/actions/install_ov_wheels/action.yml
- sparse-checkout-cone-mode: false
- path: 'openvino'
-
- name: Setup Python ${{ inputs.python-version }}
- uses: ./openvino/.github/actions/setup_python
+ uses: ./.github/actions/setup_python
with:
version: ${{ inputs.python-version }}
pip-cache-path: ${{ runner.os == 'Linux' && env.PIP_CACHE_PATH_LINUX || env.PIP_CACHE_PATH_WIN }}
@@ -109,9 +92,9 @@ jobs:
self-hosted-runner: ${{ runner.os != 'macOS' }}
- name: Install OpenVINO Python wheels
- uses: ./openvino/.github/actions/install_ov_wheels
+ uses: ./.github/actions/install_ov_wheels
with:
- wheels-dir-path: ${{ env.INSTALL_WHEELS_DIR }}
+ wheels-dir-path: ${{ env.INSTALL_DIR }}
wheels-to-install: 'openvino openvino_tokenizers'
- name: Install Python Layer tests dependencies
@@ -120,29 +103,20 @@ jobs:
python3 -m pip install -r ${{ env.INSTALL_TEST_DIR }}/requirements_tensorflow
- name: TensorFlow 1 Layer Tests - TF FE
- if: fromJSON(inputs.affected-components).TF_FE.test
+ if: ${{ fromJSON(inputs.affected-components).TF_FE.test }}
run: |
- python3 -m pytest ${{ env.LAYER_TESTS_INSTALL_DIR }}/tensorflow_tests/ -n logical -m precommit --junitxml=${{ env.INSTALL_TEST_DIR }}/TEST-tf_fe.xml
+ python3 -m pytest ${{ env.INSTALL_TEST_DIR }}/layer_tests/tensorflow_tests/ -n logical -m precommit --junitxml=${{ env.INSTALL_TEST_DIR }}/TEST-tf_fe.xml
env:
TEST_DEVICE: CPU
TEST_PRECISION: FP16
- name: TensorFlow 2 Layer Tests - TF FE
- if: fromJSON(inputs.affected-components).TF_FE.test && runner.os != 'macOS' # Ticket: 123322
+ if: ${{ fromJSON(inputs.affected-components).TF_FE.test && runner.os != 'macOS' }} # Ticket: 123322
run: |
- python3 -m pytest ${{ env.LAYER_TESTS_INSTALL_DIR }}/tensorflow2_keras_tests/ -n logical -m precommit --junitxml=${{ env.INSTALL_TEST_DIR }}/TEST-tf2_fe.xml
+ python3 -m pytest ${{ env.INSTALL_TEST_DIR }}/layer_tests/tensorflow2_keras_tests/ -n logical -m precommit --junitxml=${{ env.INSTALL_TEST_DIR }}/TEST-tf2_fe.xml
env:
TEST_DEVICE: CPU
- TEST_PRECISION: FP16
-
- - name: JAX Layer Tests - TF FE
- # JAX single layer models converted via TF FE
- if: ${{ fromJSON(inputs.affected-components).TF_FE.test && runner.arch != 'ARM64' && runner.os != 'macOS' }}
- run: python3 -m pytest ${{ env.LAYER_TESTS_INSTALL_DIR }}/jax_tests/ -n logical -m precommit --junitxml=${{ env.INSTALL_TEST_DIR }}/TEST-jax.xml
- env:
- TEST_DEVICE: CPU
- TEST_PRECISION: FP16
-
+ TEST_PRECISION:
- name: Upload Test Results
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: ${{ !cancelled() }}
diff --git a/.github/workflows/job_tensorflow_models_tests.yml b/.github/workflows/job_tensorflow_models_tests.yml
index 61fae9e81b0..ac22288988c 100644
--- a/.github/workflows/job_tensorflow_models_tests.yml
+++ b/.github/workflows/job_tensorflow_models_tests.yml
@@ -7,11 +7,11 @@ on:
description: 'Machine on which the tests would run'
type: string
required: true
- container:
- description: 'JSON to be converted to the value of the "container" configuration for the job'
+ image:
+ description: 'Docker image to use for the job'
type: string
required: false
- default: '{"image": null}'
+ default: null
model_scope:
description: 'Scope of models for testing.'
type: string
@@ -19,79 +19,72 @@ on:
permissions: read-all
+env:
+ HF_HUB_CACHE_LIN: /mount/caches/huggingface
+ HF_HUB_CACHE_WIN: "C:\\mount\\caches\\huggingface"
+
jobs:
TensorFlow_Models_Tests:
name: TensorFlow Models tests
timeout-minutes: ${{ inputs.model_scope != 'precommit' && 400 || 40 }}
runs-on: ${{ inputs.runner }}
- container: ${{ fromJSON(inputs.container) }}
+ container:
+ image: ${{ inputs.image }}
+ volumes:
+ - /mount:/mount
+ - ${{ github.workspace }}:${{ github.workspace }} # Needed as ${{ github.workspace }} is not working correctly when using Docker
+ options: "-e HF_TOKEN" # Needed for HuggingFace cache authentication
defaults:
run:
shell: bash
env:
DEBIAN_FRONTEND: noninteractive # to prevent apt-get from waiting user input
- OPENVINO_REPO: ${{ github.workspace }}/openvino
INSTALL_DIR: ${{ github.workspace }}/install
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
- INSTALL_WHEELS_DIR: ${{ github.workspace }}/install/wheels
- MODEL_HUB_TESTS_INSTALL_DIR: ${{ github.workspace }}/install/tests/model_hub_tests
NUMBER_OF_REPLICAS: 2
USE_SYSTEM_CACHE: False # Using remote HuggingFace cache
steps:
- - name: Download OpenVINO artifacts (tarballs)
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
+ - name: Fetch custom actions
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+ timeout-minutes: 15
with:
- pattern: openvino_[tests]*
- path: ${{ env.INSTALL_DIR }}
- merge-multiple: true
+ sparse-checkout: |
+ .github/actions
+ sparse-checkout-cone-mode: false
+ submodules: 'false'
- - name: Download OpenVINO artifacts (wheels)
+ - name: Download OpenVINO artifacts (tarballs and wheels)
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
- pattern: openvino_[wheels|tokenizers_wheel]*
- path: ${{ env.INSTALL_WHEELS_DIR }}
+ pattern: openvino_@(wheels|tests|tokenizers_wheel)
+ path: ${{ env.INSTALL_DIR }}
merge-multiple: true
-
- # Needed as ${{ github.workspace }} is not working correctly when using Docker
+
- name: Setup Variables
run: |
- echo "OPENVINO_REPO=$GITHUB_WORKSPACE/openvino" >> "$GITHUB_ENV"
- echo "INSTALL_DIR=$GITHUB_WORKSPACE/install" >> "$GITHUB_ENV"
- echo "INSTALL_TEST_DIR=$GITHUB_WORKSPACE/install/tests" >> "$GITHUB_ENV"
- echo "INSTALL_WHEELS_DIR=$GITHUB_WORKSPACE/install/wheels" >> "$GITHUB_ENV"
- echo "MODEL_HUB_TESTS_INSTALL_DIR=$GITHUB_WORKSPACE/install/tests/model_hub_tests" >> "$GITHUB_ENV"
+ echo "HF_HUB_CACHE=${{ runner.os == 'Linux' && env.HF_HUB_CACHE_LIN || env.HF_HUB_CACHE_WIN }}" >> "$GITHUB_ENV"
echo "TFHUB_CACHE_DIR=/mount/testdata$((GITHUB_RUN_NUMBER % NUMBER_OF_REPLICAS))/tfhub_models" >> "$GITHUB_ENV"
- echo "HF_HUB_CACHE=/mount/caches/huggingface" >> "$GITHUB_ENV"
-
- - name: Setup HuggingFace Cache Directory (Windows)
- if: runner.os == 'Windows'
- run: Add-Content -Path $env:GITHUB_ENV -Value "HF_HUB_CACHE=C:\\mount\\caches\\huggingface"
- name: Extract OpenVINO artifacts (Linux and macOS)
- run: pigz -dc openvino_tests.tar.gz | tar -xf - -C ${INSTALL_DIR}
+ run: pigz -dc openvino_tests.tar.gz | tar -xf - -v
+ working-directory: ${{ env.INSTALL_DIR }}
+
+ - name: Extract OpenVINO artifacts (Windows)
+ if: ${{ runner.os == 'Windows' }}
+ run: Expand-Archive openvino_tests.zip -DestinationPath . -Verbose
working-directory: ${{ env.INSTALL_DIR }}
-
- - name: Fetch setup_python and install wheels actions
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- timeout-minutes: 15
- with:
- sparse-checkout: |
- .github/actions/setup_python/action.yml
- .github/actions/install_ov_wheels/action.yml
- sparse-checkout-cone-mode: false
- path: 'openvino'
- name: Setup Python 3.11
- uses: ./openvino/.github/actions/setup_python
+ uses: ./.github/actions/setup_python
with:
version: '3.11'
should-setup-pip-paths: 'false'
self-hosted-runner: ${{ contains(inputs.runner, 'aks') }}
- name: Install OpenVINO Python wheels
- uses: ./openvino/.github/actions/install_ov_wheels
+ uses: ./.github/actions/install_ov_wheels
with:
- wheels-dir-path: ${{ env.INSTALL_WHEELS_DIR }}
+ wheels-dir-path: ${{ env.INSTALL_DIR }}
wheels-to-install: 'openvino openvino_tokenizers'
- name: Install TF Models tests requirements
@@ -99,14 +92,14 @@ jobs:
- name: TensorFlow Models Tests - TF FE
run: |
- export PYTHONPATH=${MODEL_HUB_TESTS_INSTALL_DIR}:$PYTHONPATH
- python3 -m pytest ${MODEL_HUB_TESTS_INSTALL_DIR}/tensorflow/test_tf_convert_model.py -m "${MODEL_SCOPE}" \
+ export PYTHONPATH=${INSTALL_TEST_DIR}/model_hub_tests:$PYTHONPATH
+ python3 -m pytest ${INSTALL_TEST_DIR}/model_hub_tests/tensorflow/test_tf_convert_model.py -m "${MODEL_SCOPE}" \
--html=${INSTALL_TEST_DIR}/TEST-tf_fe_models_convert_model_"${MODEL_SCOPE}".html --self-contained-html -v
- python3 -m pytest ${MODEL_HUB_TESTS_INSTALL_DIR}/tensorflow/test_tf_read_model.py -m "${MODEL_SCOPE}" \
+ python3 -m pytest ${INSTALL_TEST_DIR}/model_hub_tests/tensorflow/test_tf_read_model.py -m "${MODEL_SCOPE}" \
--html=${INSTALL_TEST_DIR}/TEST-tf_fe_models_read_model_"${MODEL_SCOPE}".html --self-contained-html -v
# decouple notebook tests due to GitHub issue in tensorflow_hub https://github.com/tensorflow/hub/issues/903
# and use WA to switch to (legacy) Keras 2
- TF_USE_LEGACY_KERAS=1 python3 -m pytest ${MODEL_HUB_TESTS_INSTALL_DIR}/tensorflow/test_tf_hub_api_notebooks.py -m "${MODEL_SCOPE}" \
+ TF_USE_LEGACY_KERAS=1 python3 -m pytest ${INSTALL_TEST_DIR}/model_hub_tests/tensorflow/test_tf_hub_api_notebooks.py -m "${MODEL_SCOPE}" \
--html=${INSTALL_TEST_DIR}/TEST-tf_fe_models_notebooks_"${MODEL_SCOPE}".html --self-contained-html -v
env:
TEST_DEVICE: CPU
diff --git a/.github/workflows/job_tokenizers.yml b/.github/workflows/job_tokenizers.yml
index 1af6df0a06e..5b9909d3ef7 100644
--- a/.github/workflows/job_tokenizers.yml
+++ b/.github/workflows/job_tokenizers.yml
@@ -11,11 +11,11 @@ on:
description: "shell to override the default shell settings in the runner's operating system."
type: string
required: true
- container:
- description: 'JSON to be converted to the value of the "container" configuration for the job'
+ image:
+ description: 'Docker image to use for the job'
type: string
required: false
- default: '{"image": null}'
+ default: null
affected-components:
description: 'Components that are affected by changes in the commit defined by the Smart CI Action'
type: string
@@ -44,7 +44,11 @@ jobs:
run:
shell: ${{ inputs.shell }}
runs-on: ${{ inputs.runner }}
- container: ${{ fromJSON(inputs.container) }}
+ container:
+ image: ${{ inputs.image }}
+ volumes:
+ - /mount:/mount
+ - ${{ github.workspace }}:${{ github.workspace }} # Needed as ${{ github.workspace }} is not working correctly when using Docker
env:
INSTALL_DIR: ${{ github.workspace }}/install
INSTALL_WHEELS_DIR: ${{ github.workspace }}/install/wheels
@@ -52,23 +56,23 @@ jobs:
EXTENSION_BUILD_DIR: ${{ github.workspace }}/build
steps:
- # Needed as ${{ github.workspace }} is not working correctly when using Docker
- - name: Setup Variables
- run: |
- echo "INSTALL_DIR=$GITHUB_WORKSPACE/install" >> "$GITHUB_ENV"
- echo "OPENVINO_TOKENIZERS_REPO=$GITHUB_WORKSPACE/openvino_tokenizers" >> "$GITHUB_ENV"
- echo "EXTENSION_BUILD_DIR=$GITHUB_WORKSPACE/build" >> "$GITHUB_ENV"
- echo "INSTALL_WHEELS_DIR=$GITHUB_WORKSPACE/install/wheels" >> "$GITHUB_ENV"
-
- name: checkout actions
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
timeout-minutes: 15
with:
sparse-checkout: |
- .github/actions/setup_python
- .github/actions/cache
- .github/actions/install_ov_wheels/action.yml
+ .github/actions
install_build_dependencies.sh
+ sparse-checkout-cone-mode: false
+ submodules: 'false'
+
+ - name: Clone OpenVINO Tokenizers
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+ timeout-minutes: 15
+ with:
+ repository: 'openvinotoolkit/openvino_tokenizers'
+ path: ${{ env.OPENVINO_TOKENIZERS_REPO }}
+ ref: ${{ env.TARGET_BRANCH }}
- name: Install OpenVINO dependencies (mac)
if: runner.os == 'macOS'
@@ -82,18 +86,10 @@ jobs:
should-setup-pip-paths: ${{ runner.os != 'macOS' }}
self-hosted-runner: ${{ runner.os != 'macOS' }}
- - name: Clone OpenVINO Tokenizers
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- timeout-minutes: 15
- with:
- repository: 'openvinotoolkit/openvino_tokenizers'
- path: ${{ env.OPENVINO_TOKENIZERS_REPO }}
- ref: ${{ env.TARGET_BRANCH }}
-
- name: Download OpenVINO artifacts (wheels)
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
- pattern: openvino_[wheels]*
+ pattern: openvino_wheels
path: ${{ env.INSTALL_WHEELS_DIR }}
merge-multiple: true
diff --git a/.github/workflows/linux_arm64.yml b/.github/workflows/linux_arm64.yml
index a2d63e40576..a697d853049 100644
--- a/.github/workflows/linux_arm64.yml
+++ b/.github/workflows/linux_arm64.yml
@@ -93,7 +93,7 @@ jobs:
uses: ./.github/workflows/job_build_linux.yml
with:
runner: 'aks-linux-16-cores-32gb-arm'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_arm64 }}", "volumes": ["/mount:/mount"], "options": "-e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING"}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_arm64 }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
event-name: ${{ github.event_name }}
os: 'ubuntu_20_04'
@@ -132,7 +132,7 @@ jobs:
uses: ./.github/workflows/job_samples_tests.yml
with:
runner: 'aks-linux-8-cores-16gb-arm'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}", "volumes": ["/mount:/mount"]}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
JS_API:
@@ -142,7 +142,7 @@ jobs:
uses: ./.github/workflows/job_openvino_js.yml
with:
runner: 'aks-linux-4-cores-8gb-arm'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_arm64 }}"}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_arm64 }}
ONNX_Runtime:
name: ONNX Runtime Integration
@@ -153,7 +153,7 @@ jobs:
uses: ./.github/workflows/job_onnx_runtime.yml
with:
runner: 'aks-linux-16-cores-32gb-arm'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_arm64 }}", "volumes": ["/mount:/mount"], "options": "-e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING"}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_arm64 }}
sccache-azure-key-prefix: 'ubuntu20_aarch64_onnxruntime'
Openvino_tokenizers:
@@ -163,7 +163,7 @@ jobs:
with:
runner: 'aks-linux-8-cores-16gb-arm'
shell: bash
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_arm64 }}", "volumes": ["/mount:/mount"]}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_arm64 }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: '3.11'
target-branch: ${{ inputs.target-branch }}
@@ -185,7 +185,7 @@ jobs:
uses: ./.github/workflows/job_python_unit_tests.yml
with:
runner: 'aks-linux-8-cores-16gb-arm'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}", "volumes": ["/mount:/mount"]}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: '3.11'
@@ -195,7 +195,7 @@ jobs:
uses: ./.github/workflows/job_python_api_tests.yml
with:
runner: 'aks-linux-16-cores-arm'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}", "volumes": ["/mount:/mount"]}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: '3.11'
@@ -205,7 +205,7 @@ jobs:
uses: ./.github/workflows/job_tensorflow_layer_tests.yml
with:
runner: 'aks-linux-16-cores-32gb-arm'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}", "volumes": ["/mount:/mount"]}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: '3.11'
@@ -215,7 +215,7 @@ jobs:
uses: ./.github/workflows/job_pytorch_layer_tests.yml
with:
runner: 'aks-linux-16-cores-32gb-arm'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}", "volumes": ["/mount:/mount"]}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: '3.11'
@@ -225,7 +225,7 @@ jobs:
uses: ./.github/workflows/job_pytorch_fx_layer_tests.yml
with:
runner: 'aks-linux-16-cores-32gb-arm'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}", "volumes": ["/mount:/mount"]}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: '3.11'
@@ -235,7 +235,7 @@ jobs:
uses: ./.github/workflows/job_jax_layer_tests.yml
with:
runner: 'aks-linux-16-cores-32gb-arm'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}", "volumes": ["/mount:/mount"]}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: '3.11'
@@ -261,7 +261,7 @@ jobs:
uses: ./.github/workflows/job_tensorflow_models_tests.yml
with:
runner: 'aks-linux-16-cores-32gb-arm'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}"}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}
model_scope: 'precommit'
PyTorch_Models_Tests:
@@ -272,7 +272,7 @@ jobs:
uses: ./.github/workflows/job_pytorch_models_tests.yml
with:
runner: 'aks-linux-16-cores-32gb-arm'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}"}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}
model_scope: 'precommit'
Overall_Status:
diff --git a/.github/workflows/manylinux_2014.yml b/.github/workflows/manylinux_2014.yml
index 2c9800c21c8..156d6b12c6f 100644
--- a/.github/workflows/manylinux_2014.yml
+++ b/.github/workflows/manylinux_2014.yml
@@ -292,7 +292,7 @@ jobs:
image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_x64_py313 }}
with:
runner: 'aks-linux-4-cores-16gb'
- container: '{"image": "${{ matrix.image }}", "volumes": ["/mount:/mount"]}'
+ image: ${{ matrix.image }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: ${{ matrix.python-version }}
diff --git a/.github/workflows/manylinux_2_28.yml b/.github/workflows/manylinux_2_28.yml
index dabe66f7a35..3383a864bd3 100644
--- a/.github/workflows/manylinux_2_28.yml
+++ b/.github/workflows/manylinux_2_28.yml
@@ -250,7 +250,7 @@ jobs:
image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_x64_py313 }}
with:
runner: 'aks-linux-4-cores-16gb'
- container: '{"image": "${{ matrix.image }}", "volumes": ["/mount:/mount"]}'
+ image: ${{ matrix.image }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: ${{ matrix.python-version }}
diff --git a/.github/workflows/ubuntu_22.yml b/.github/workflows/ubuntu_22.yml
index 3c62b0ea421..84c4554b17d 100644
--- a/.github/workflows/ubuntu_22.yml
+++ b/.github/workflows/ubuntu_22.yml
@@ -98,7 +98,7 @@ jobs:
uses: ./.github/workflows/job_build_linux.yml
with:
runner: 'aks-linux-16-cores-32gb'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING"}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_x64 }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
event-name: ${{ github.event_name }}
os: 'ubuntu_22_04'
@@ -135,7 +135,7 @@ jobs:
uses: ./.github/workflows/job_samples_tests.yml
with:
runner: 'aks-linux-4-cores-16gb'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"]}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
JS_API:
@@ -145,7 +145,7 @@ jobs:
uses: ./.github/workflows/job_openvino_js.yml
with:
runner: 'aks-linux-4-cores-16gb'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_x64 }}"}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_x64 }}
Conformance:
needs: [ Docker, Build, Smart_CI ]
@@ -286,7 +286,7 @@ jobs:
uses: ./.github/workflows/job_onnx_runtime.yml
with:
runner: 'aks-linux-16-cores-32gb'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING -e HF_TOKEN"}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_x64 }}
sccache-azure-key-prefix: 'ubuntu22_x86_64_onnxruntime'
ONNX_Models:
@@ -297,7 +297,7 @@ jobs:
uses: ./.github/workflows/job_onnx_models_tests.yml
with:
runner: 'aks-linux-16-cores-64gb'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}
CXX_Unit_Tests:
name: C++ unit tests
@@ -315,7 +315,7 @@ jobs:
uses: ./.github/workflows/job_python_unit_tests.yml
with:
runner: 'aks-linux-4-cores-16gb'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"]}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: '3.11'
@@ -325,7 +325,7 @@ jobs:
uses: ./.github/workflows/job_python_api_tests.yml
with:
runner: 'aks-linux-4-cores-16gb'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"]}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: '3.11'
@@ -335,7 +335,7 @@ jobs:
uses: ./.github/workflows/job_tensorflow_layer_tests.yml
with:
runner: 'aks-linux-4-cores-16gb'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: '3.11'
@@ -345,7 +345,7 @@ jobs:
uses: ./.github/workflows/job_pytorch_layer_tests.yml
with:
runner: 'aks-linux-4-cores-16gb'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: '3.11'
@@ -355,7 +355,7 @@ jobs:
uses: ./.github/workflows/job_pytorch_fx_layer_tests.yml
with:
runner: 'aks-linux-4-cores-16gb'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: '3.11'
@@ -365,7 +365,7 @@ jobs:
uses: ./.github/workflows/job_jax_layer_tests.yml
with:
runner: 'aks-linux-4-cores-16gb'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: '3.11'
@@ -376,7 +376,7 @@ jobs:
uses: ./.github/workflows/job_keras3_backend.yml
with:
runner: 'aks-linux-4-cores-16gb'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"]}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}
python-version: '3.11'
CPU_Functional_Tests:
@@ -399,7 +399,7 @@ jobs:
with:
runner: 'aks-linux-8-cores-16gb'
model_scope: 'precommit'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}
TensorFlow_Models_Tests_Nightly_TF_HUB:
name: TensorFlow TF Hub Models tests
@@ -409,7 +409,7 @@ jobs:
with:
runner: 'aks-linux-8-cores-64gb'
model_scope: 'nightly_tf_hub'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}
TensorFlow_Models_Tests_Nightly_HF:
name: TensorFlow Hugging Face Models tests
@@ -419,7 +419,7 @@ jobs:
with:
runner: 'aks-linux-8-cores-64gb'
model_scope: 'nightly_hf'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}
PyTorch_Models_Tests:
name: PyTorch Models tests
@@ -429,7 +429,7 @@ jobs:
with:
runner: 'aks-linux-8-cores-64gb'
model_scope: 'precommit'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}
PyTorch_Models_Tests_Nightly_Scope1:
name: PyTorch Models Nightly Scope1 tests
@@ -439,7 +439,7 @@ jobs:
with:
runner: 'aks-linux-16-cores-64gb'
model_scope: 'nightly_scope1'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}
PyTorch_Models_Tests_Nightly_Scope2:
name: PyTorch Models Nightly Scope2 tests
@@ -449,7 +449,7 @@ jobs:
with:
runner: 'aks-linux-16-cores-64gb'
model_scope: 'nightly_scope2'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}
JAX_Models_Tests_Precommit:
name: JAX/Flax Models tests
@@ -459,7 +459,7 @@ jobs:
with:
runner: 'aks-linux-8-cores-16gb'
model_scope: 'precommit'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}
NVIDIA_Plugin:
name: NVIDIA plugin
@@ -539,7 +539,7 @@ jobs:
with:
runner: 'aks-linux-4-cores-16gb'
shell: bash
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"]}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_x64 }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: '3.11'
target-branch: ${{ inputs.target-branch }}
@@ -569,8 +569,8 @@ jobs:
device: 'igpu'
test_type: ${{ matrix.TEST_TYPE }}
runner: "[ 'self-hosted', 'igpu' ]"
- container: '{"image": "ubuntu:22.04", "volumes": ["/dev/dri:/dev/dri"], "options": "--group-add 109 --group-add 44
- --device /dev/dri:/dev/dri"}'
+ image: ubuntu:22.04
+ options: "--group-add 109 --group-add 44 --device /dev/dri:/dev/dri"
# if: fromJSON(needs.smart_ci.outputs.affected_components).GPU
if: ${{ 'false' }} # Ticket: 143677
@@ -587,8 +587,8 @@ jobs:
device: 'dgpu'
test_type: ${{ matrix.TEST_TYPE }}
runner: "[ 'self-hosted', 'dgpu' ]"
- container: '{"image": "ubuntu:22.04", "volumes": ["/dev/dri:/dev/dri"], "options": "--group-add 109 --group-add 44
- --device /dev/dri/card0:/dev/dri/card0 --device /dev/dri/renderD128:/dev/dri/renderD128"}'
+ image: ubuntu:22.04
+ options: "--group-add 109 --group-add 44 --device /dev/dri/card0:/dev/dri/card0 --device /dev/dri/renderD128:/dev/dri/renderD128"
# if: ${{ github.event_name == 'schedule' }}
if: ${{ 'false' }} # Ticket: 143677
diff --git a/.github/workflows/ubuntu_22_dpcpp.yml b/.github/workflows/ubuntu_22_dpcpp.yml
index 25eb69befa7..1dc5a0311e0 100644
--- a/.github/workflows/ubuntu_22_dpcpp.yml
+++ b/.github/workflows/ubuntu_22_dpcpp.yml
@@ -84,7 +84,7 @@ jobs:
uses: ./.github/workflows/job_build_linux.yml
with:
runner: 'aks-linux-16-cores-32gb'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_x64_dpcpp }}", "volumes": ["/mount:/mount"], "options": "-e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING"}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_x64_dpcpp }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
event-name: ${{ github.event_name }}
os: 'ubuntu_22_04_dpcpp'
diff --git a/.github/workflows/ubuntu_24.yml b/.github/workflows/ubuntu_24.yml
index 49a206cc014..746920c7d7d 100644
--- a/.github/workflows/ubuntu_24.yml
+++ b/.github/workflows/ubuntu_24.yml
@@ -92,7 +92,7 @@ jobs:
uses: ./.github/workflows/job_build_linux.yml
with:
runner: 'aks-linux-16-cores-32gb'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_24_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING"}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_24_04_x64 }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
event-name: ${{ github.event_name }}
os: 'ubuntu_24_04'
@@ -138,7 +138,7 @@ jobs:
uses: ./.github/workflows/job_samples_tests.yml
with:
runner: 'aks-linux-4-cores-16gb'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_24_04_x64 }}", "volumes": ["/mount:/mount"]}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_24_04_x64 }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
Python_Unit_Tests:
@@ -147,7 +147,7 @@ jobs:
uses: ./.github/workflows/job_python_unit_tests.yml
with:
runner: 'aks-linux-4-cores-16gb'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_24_04_x64 }}", "volumes": ["/mount:/mount"]}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_24_04_x64 }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: '3.12'
@@ -157,7 +157,7 @@ jobs:
uses: ./.github/workflows/job_python_api_tests.yml
with:
runner: 'aks-linux-4-cores-16gb'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_24_04_x64 }}", "volumes": ["/mount:/mount"]}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_24_04_x64 }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: '3.12'
@@ -167,7 +167,7 @@ jobs:
uses: ./.github/workflows/job_pytorch_layer_tests.yml
with:
runner: 'aks-linux-4-cores-16gb'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_24_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_24_04_x64 }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: '3.12'
@@ -177,7 +177,7 @@ jobs:
uses: ./.github/workflows/job_pytorch_fx_layer_tests.yml
with:
runner: 'aks-linux-4-cores-16gb'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_24_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_24_04_x64 }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: '3.12'
@@ -187,7 +187,7 @@ jobs:
uses: ./.github/workflows/job_jax_layer_tests.yml
with:
runner: 'aks-linux-4-cores-16gb'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_24_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_24_04_x64 }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: '3.12'
@@ -197,7 +197,7 @@ jobs:
uses: ./.github/workflows/job_tensorflow_layer_tests.yml
with:
runner: 'aks-linux-4-cores-16gb'
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_24_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_24_04_x64 }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: '3.12'
@@ -208,7 +208,7 @@ jobs:
with:
runner: 'aks-linux-4-cores-16gb'
shell: bash
- container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_24_04_x64 }}", "volumes": ["/mount:/mount"]}'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_24_04_x64 }}
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: '3.12'
target-branch: ${{ inputs.target-branch }}
diff --git a/.github/workflows/windows_vs2022_release.yml b/.github/workflows/windows_vs2022_release.yml
index f0c4c48e6d5..9a09218f47c 100644
--- a/.github/workflows/windows_vs2022_release.yml
+++ b/.github/workflows/windows_vs2022_release.yml
@@ -111,8 +111,8 @@ jobs:
- name: Extract OpenVINO packages
run: |
- Expand-Archive openvino_package.zip -DestinationPath .
- Expand-Archive openvino_tests.zip -DestinationPath .
+ Expand-Archive openvino_package.zip -DestinationPath . -Verbose
+ Expand-Archive openvino_tests.zip -DestinationPath . -Verbose
working-directory: ${{ env.INSTALL_DIR }}
- name: Fetch setup_python and install wheels actions
@@ -201,7 +201,7 @@ jobs:
merge-multiple: true
- name: Extract OpenVINO packages
- run: Expand-Archive openvino_js_package.zip -DestinationPath .
+ run: Expand-Archive openvino_js_package.zip -DestinationPath . -Verbose
working-directory: ${{ env.OPENVINO_JS_LIBS_DIR }}
- name: Setup Node ${{ env.NODE_VERSION }}
@@ -288,7 +288,7 @@ jobs:
merge-multiple: true
- name: Extract OpenVINO packages
- run: Expand-Archive openvino_tests.zip -DestinationPath .
+ run: Expand-Archive openvino_tests.zip -DestinationPath . -Verbose
working-directory: ${{ env.INSTALL_DIR }}
- name: Fetch setup_python and install wheels actions
@@ -431,7 +431,7 @@ jobs:
merge-multiple: true
- name: Extract OpenVINO packages
- run: Expand-Archive openvino_tests.zip -DestinationPath .
+ run: Expand-Archive openvino_tests.zip -DestinationPath . -Verbose
working-directory: ${{ env.INSTALL_DIR }}
- name: Fetch setup_python and install wheels actions