Skip to content

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

[GHA] Enable pip caching proxy for every workflow (#36466)

Andrey Babushkin442c205a1719
diff --git a/.github/actions/handle_docker/action.yml b/.github/actions/handle_docker/action.yml
index 7c18b935753..14c753c9b30 100644
--- a/.github/actions/handle_docker/action.yml
+++ b/.github/actions/handle_docker/action.yml
@@ -42,6 +42,9 @@ runs:
path: "${{ github.action_path }}/requirements.txt"
update-setuptools: "false"
update-wheel: "false"
+ env:
+ PIP_INDEX_URL: ${{ startsWith(runner.name, 'aks-') && 'http://pip-proxy.pip-proxy.svc.cluster.local/simple/' || '' }}
+ PIP_TRUSTED_HOST: ${{ startsWith(runner.name, 'aks-') && 'pip-proxy.pip-proxy.svc.cluster.local' || '' }}
- name: Set up Docker Buildx
id: buildx
diff --git a/.github/actions/setup_python/action.yml b/.github/actions/setup_python/action.yml
index aadd6a7e26b..b4028ff2d4d 100644
--- a/.github/actions/setup_python/action.yml
+++ b/.github/actions/setup_python/action.yml
@@ -5,10 +5,11 @@ inputs:
description: 'Python version to install'
required: true
pip-cache-path:
- description: 'Path on share where the pip cache is stored'
+ description: 'Path of a directory to store the pip cache for a specific pip version. Sets `PIP_CACHE_DIR` env variable if not empty'
required: false
- should-setup-pip-paths:
- description: 'If the action should setup `PIP_CACHE_DIR` & `PIP_INSTALL_PATH` env variables'
+ default: ''
+ set-pip-install-path:
+ description: 'If the action should set `PIP_INSTALL_PATH` env variable'
required: false
default: 'false'
self-hosted-runner:
@@ -19,6 +20,10 @@ inputs:
description: 'If pre-release versions of Python are allowed'
required: false
default: 'false'
+ use-pip-proxy:
+ description: 'Configure pip to use caching proxy. Available only for self-hosted runners in the cloud, i.e. not available for iGPU runners'
+ required: false
+ default: 'false'
runs:
using: 'composite'
steps:
@@ -49,19 +54,38 @@ runs:
python-version: ${{ inputs.version }}
allow-prereleases: ${{ inputs.allow-prereleases }}
- - if: ${{ inputs.should-setup-pip-paths == 'true' && runner.os != 'Windows' }}
- name: Setup pip variables (cache and install path)
+ - if: ${{ inputs.set-pip-install-path == 'true' && runner.os != 'Windows' }}
+ name: Set PIP_INSTALL_PATH env variable
+ shell: bash
+ run: |
+ echo "PIP_INSTALL_PATH=$(python3 -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')" >> $GITHUB_ENV
+
+ - if: ${{ inputs.pip-cache-path != '' && runner.os != 'Windows' }}
+ name: Set PIP_CACHE_DIR env variable
shell: bash
run: |
PIP_VER=$(python3 -c "import pip; print(pip.__version__)")
echo "Using pip version: ${PIP_VER}"
echo "PIP_CACHE_DIR=${{ inputs.pip-cache-path }}/${PIP_VER}" >> $GITHUB_ENV
- echo "PIP_INSTALL_PATH=$(python3 -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')" >> $GITHUB_ENV
- - if: ${{ inputs.should-setup-pip-paths == 'true' && runner.os == 'Windows' }}
- name: Setup pip cache path
+ - if: ${{ inputs.pip-cache-path != '' && runner.os == 'Windows' }}
+ name: Set PIP_CACHE_DIR env variable
shell: pwsh
run: |
$pipVersion = python3 -c "import pip; print(pip.__version__)"
Write-Host "Using pip version: $pipVersion"
"PIP_CACHE_DIR=${{ inputs.pip-cache-path }}/$pipVersion" >> $env:GITHUB_ENV
+
+ - if: ${{ inputs.self-hosted-runner == 'true' && inputs.use-pip-proxy == 'true' && runner.os == 'Linux' }}
+ name: Configure pip to use caching proxy
+ shell: bash
+ run: |
+ echo "PIP_INDEX_URL=http://pip-proxy.pip-proxy.svc.cluster.local/simple/" >> "$GITHUB_ENV"
+ echo "PIP_TRUSTED_HOST=pip-proxy.pip-proxy.svc.cluster.local" >> "$GITHUB_ENV"
+
+ - if: ${{ inputs.self-hosted-runner == 'true' && inputs.use-pip-proxy == 'true' && runner.os == 'Windows' }}
+ name: Configure pip to use caching proxy
+ shell: pwsh
+ run: |
+ echo "PIP_INDEX_URL=http://pip-proxy.pip-proxy.svc.cluster.local/simple/" >> "$env:GITHUB_ENV"
+ echo "PIP_TRUSTED_HOST=pip-proxy.pip-proxy.svc.cluster.local" >> "$env:GITHUB_ENV"
diff --git a/.github/dockerfiles/docker_tag b/.github/dockerfiles/docker_tag
index d246c27005c..b652f0f3c34 100644
--- a/.github/dockerfiles/docker_tag
+++ b/.github/dockerfiles/docker_tag
@@ -1 +1 @@
-pr-36590
+pr-36466
diff --git a/.github/workflows/build_doc.yml b/.github/workflows/build_doc.yml
index 334979d96ea..dc0bf664fd2 100644
--- a/.github/workflows/build_doc.yml
+++ b/.github/workflows/build_doc.yml
@@ -121,6 +121,8 @@ jobs:
SCCACHE_SERVER_PORT: 35555
SCCACHE_CACHE_SIZE: 50G
SCCACHE_AZURE_KEY_PREFIX: build_docs
+ PIP_INDEX_URL: "http://pip-proxy.pip-proxy.svc.cluster.local/simple/"
+ PIP_TRUSTED_HOST: "pip-proxy.pip-proxy.svc.cluster.local"
steps:
- name: Append the environment variable - load SCCACHE_AZURE_CONNECTION_STRING from file
shell: bash
diff --git a/.github/workflows/code_style.yml b/.github/workflows/code_style.yml
index df5ac7defae..6ad5668a883 100644
--- a/.github/workflows/code_style.yml
+++ b/.github/workflows/code_style.yml
@@ -200,6 +200,9 @@ jobs:
NamingConventionCheck:
needs: Docker
runs-on: aks-linux-4-cores-16gb
+ env:
+ PIP_INDEX_URL: "http://pip-proxy.pip-proxy.svc.cluster.local/simple/"
+ PIP_TRUSTED_HOST: "pip-proxy.pip-proxy.svc.cluster.local"
container:
image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64_code_style }}
volumes:
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index d824d8ae470..5bce621ccab 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -24,7 +24,6 @@ concurrency:
permissions: read-all
env:
- PIP_CACHE_PATH: /mount/caches/pip/linux
ENABLE_BRANCH_COVERAGE: 'false'
LCOV_CAPTURE_TIMEOUT_SECONDS: '3600'
NODE_VERSION: '21'
@@ -180,8 +179,8 @@ jobs:
uses: ./.github/actions/setup_python
with:
version: '3.11'
- pip-cache-path: ${{ env.PIP_CACHE_PATH }}
- should-setup-pip-paths: 'true'
+ use-pip-proxy: 'true'
+ set-pip-install-path: 'true'
self-hosted-runner: 'true'
- name: Install coverage Python dependencies
@@ -471,8 +470,8 @@ jobs:
uses: ./.github/actions/setup_python
with:
version: '3.11'
- pip-cache-path: ${{ env.PIP_CACHE_PATH }}
- should-setup-pip-paths: 'true'
+ use-pip-proxy: 'true'
+ set-pip-install-path: 'true'
self-hosted-runner: 'true'
- name: Install coverage Python dependencies
@@ -663,8 +662,8 @@ jobs:
uses: ./.github/actions/setup_python
with:
version: '3.11'
- pip-cache-path: ${{ env.PIP_CACHE_PATH }}
- should-setup-pip-paths: 'true'
+ use-pip-proxy: 'true'
+ set-pip-install-path: 'true'
self-hosted-runner: 'true'
- name: Install coverage Python dependencies
@@ -801,8 +800,8 @@ jobs:
uses: ./.github/actions/setup_python
with:
version: '3.11'
- pip-cache-path: ${{ env.PIP_CACHE_PATH }}
- should-setup-pip-paths: 'true'
+ use-pip-proxy: 'true'
+ set-pip-install-path: 'true'
self-hosted-runner: 'true'
- name: Install coverage Python dependencies
diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml
index 254ccf4c9d6..ae555c37aae 100644
--- a/.github/workflows/coverity.yml
+++ b/.github/workflows/coverity.yml
@@ -30,7 +30,7 @@ concurrency:
permissions: read-all
env:
- PIP_CACHE_PATH: /mount/caches/pip/linux
+
PYTHON_VERSION: '3.11'
TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}
@@ -140,8 +140,8 @@ jobs:
uses: ./openvino/.github/actions/setup_python
with:
version: ${{ env.PYTHON_VERSION }}
- pip-cache-path: ${{ env.PIP_CACHE_PATH }}
- should-setup-pip-paths: 'true'
+ use-pip-proxy: 'true'
+ set-pip-install-path: 'true'
self-hosted-runner: 'true'
#
diff --git a/.github/workflows/dev_cpu_linux_snippets_libxsmm.yml b/.github/workflows/dev_cpu_linux_snippets_libxsmm.yml
index 8851c41e72b..3703ac48f9d 100644
--- a/.github/workflows/dev_cpu_linux_snippets_libxsmm.yml
+++ b/.github/workflows/dev_cpu_linux_snippets_libxsmm.yml
@@ -26,7 +26,7 @@ concurrency:
permissions: read-all
env:
- PIP_CACHE_PATH: /mount/caches/pip/linux
+
jobs:
Smart_CI:
@@ -332,8 +332,9 @@ jobs:
uses: ./openvino/.github/actions/setup_python
with:
version: '3.11'
- should-setup-pip-paths: 'false'
+ set-pip-install-path: 'false'
self-hosted-runner: ${{ runner.os == 'Linux' }}
+ use-pip-proxy: ${{ runner.os == 'Linux' }}
- name: Install python dependencies for run_parallel.py
run: python3 -m pip install -r ${INSTALL_TEST_DIR}/functional_test_utils/layer_tests_summary/requirements.txt
diff --git a/.github/workflows/job_build_linux.yml b/.github/workflows/job_build_linux.yml
index 5a16a36d21a..31639a75afd 100644
--- a/.github/workflows/job_build_linux.yml
+++ b/.github/workflows/job_build_linux.yml
@@ -79,7 +79,7 @@ on:
permissions: read-all
env:
- PIP_CACHE_PATH: /mount/caches/pip/linux
+
TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}
jobs:
@@ -120,6 +120,8 @@ jobs:
MANIFEST_PATH: '${{ github.workspace }}/openvino/manifest.yml'
PRODUCT_TYPE: public_linux_${{ inputs.os }}_${{ inputs.arch }}_release
COVERAGE_NOTES_DIR: ${{ github.workspace }}/coverage_build_notes
+ PIP_INDEX_URL: ${{ contains(inputs.runner, 'aks') && 'http://pip-proxy.pip-proxy.svc.cluster.local/simple/' || '' }}
+ PIP_TRUSTED_HOST: ${{ contains(inputs.runner, 'aks') && 'pip-proxy.pip-proxy.svc.cluster.local' || '' }}
steps:
- name: Append the environment variable - load SCCACHE_AZURE_CONNECTION_STRING from file
shell: bash
diff --git a/.github/workflows/job_build_windows.yml b/.github/workflows/job_build_windows.yml
index 1a3ffcc897c..c6b2ad98054 100644
--- a/.github/workflows/job_build_windows.yml
+++ b/.github/workflows/job_build_windows.yml
@@ -35,7 +35,6 @@ on:
permissions: read-all
env:
- PIP_CACHE_PATH: "C:\\mount\\caches\\pip\\win"
PYTHON_VERSION: '3.11'
NODEJS_VERSION: '21'
@@ -86,8 +85,7 @@ jobs:
uses: ./openvino/.github/actions/setup_python
with:
version: ${{ env.PYTHON_VERSION }}
- pip-cache-path: ${{ env.PIP_CACHE_PATH }}
- should-setup-pip-paths: 'true'
+ use-pip-proxy: 'true'
self-hosted-runner: 'true'
- name: Setup NodeJS
@@ -198,8 +196,8 @@ jobs:
uses: ./openvino/.github/actions/setup_python
with:
version: '3.10'
- pip-cache-path: ${{ env.PIP_CACHE_PATH }}
- should-setup-pip-paths: 'true'
+ use-pip-proxy: 'true'
+ set-pip-install-path: 'true'
self-hosted-runner: 'true'
# Setup additional Python versions for wheels building
@@ -208,8 +206,8 @@ jobs:
uses: ./openvino/.github/actions/setup_python
with:
version: '3.12'
- pip-cache-path: ${{ env.PIP_CACHE_PATH }}
- should-setup-pip-paths: 'true'
+ use-pip-proxy: 'true'
+ set-pip-install-path: 'true'
self-hosted-runner: 'true'
# Setup additional Python versions for wheels building
@@ -218,8 +216,8 @@ jobs:
uses: ./openvino/.github/actions/setup_python
with:
version: '3.13'
- pip-cache-path: ${{ env.PIP_CACHE_PATH }}
- should-setup-pip-paths: 'true'
+ use-pip-proxy: 'true'
+ set-pip-install-path: 'true'
self-hosted-runner: 'true'
# Setup additional Python versions for wheels building
@@ -228,8 +226,8 @@ jobs:
uses: ./openvino/.github/actions/setup_python
with:
version: '3.14'
- pip-cache-path: ${{ env.PIP_CACHE_PATH }}
- should-setup-pip-paths: 'true'
+ use-pip-proxy: 'true'
+ set-pip-install-path: 'true'
self-hosted-runner: 'true'
- name: Build additional Python wheels
@@ -245,10 +243,6 @@ jobs:
Write-Host "Building Python wheels for Python $pyVersion located at $pythonExecutablePath"
- $pipVersion = & $pythonExecutablePath -c "import pip; print(pip.__version__)"
- Write-Host "Using pip version: $pipVersion for $pyVersion"
- $env:PIP_CACHE_DIR="${{ env.PIP_CACHE_PATH }}/$pipVersion"
-
& $pythonExecutablePath -m pip install -r ${{ env.OPENVINO_REPO }}/src/bindings/python/wheel/requirements-dev.txt
if ($pyVersion -eq '3.14t') {
@@ -274,8 +268,8 @@ jobs:
uses: ./openvino/.github/actions/setup_python
with:
version: '3.14t'
- pip-cache-path: ${{ env.PIP_CACHE_PATH }}
- should-setup-pip-paths: 'true'
+ use-pip-proxy: 'true'
+ set-pip-install-path: 'true'
self-hosted-runner: 'true'
allow-prereleases: 'true'
@@ -291,10 +285,6 @@ jobs:
Write-Host "Building Python wheels for Python $pyVersion located at $pythonExecutablePath"
- $pipVersion = & $pythonExecutablePath -c "import pip; print(pip.__version__)"
- Write-Host "Using pip version: $pipVersion for $pyVersion"
- $env:PIP_CACHE_DIR="${{ env.PIP_CACHE_PATH }}/$pipVersion"
-
& $pythonExecutablePath -m pip install -r ${{ env.OPENVINO_REPO }}/src/bindings/python/wheel/requirements-dev.txt
cmake -DPython3_EXECUTABLE="$pythonExecutablePath" -DENABLE_GIL_PYTHON_API=OFF -DENABLE_PYTHON=ON -DENABLE_WHEEL=ON -DOpenVINODeveloperPackage_DIR=${{ env.BUILD_DIR }} -S ${{ env.OPENVINO_REPO }}/src/bindings/python -B "$pyBuildDir"
@@ -348,8 +338,8 @@ jobs:
uses: ./openvino/.github/actions/setup_python
with:
version: ${{ env.PYTHON_VERSION }}
- pip-cache-path: ${{ env.PIP_CACHE_PATH }}
- should-setup-pip-paths: 'true'
+ use-pip-proxy: 'true'
+ set-pip-install-path: 'true'
self-hosted-runner: 'true'
- name: CMake configure, build and install - OpenVINO JS API
diff --git a/.github/workflows/job_cpu_functional_tests.yml b/.github/workflows/job_cpu_functional_tests.yml
index 26efe94ff5d..5e1903bc879 100644
--- a/.github/workflows/job_cpu_functional_tests.yml
+++ b/.github/workflows/job_cpu_functional_tests.yml
@@ -79,8 +79,9 @@ jobs:
uses: ./.github/actions/setup_python
with:
version: ${{ inputs.python-version }}
- should-setup-pip-paths: 'false'
+ set-pip-install-path: 'false'
self-hosted-runner: ${{ runner.os == 'Linux' }}
+ use-pip-proxy: ${{ contains(inputs.runner, 'aks') }}
- name: Install python dependencies for run_parallel.py
run: python3 -m pip install -r ${INSTALL_TEST_DIR}/functional_test_utils/layer_tests_summary/requirements.txt
diff --git a/.github/workflows/job_gpu_rope_tests.yml b/.github/workflows/job_gpu_rope_tests.yml
index e21bf54a9a6..f98742e3233 100644
--- a/.github/workflows/job_gpu_rope_tests.yml
+++ b/.github/workflows/job_gpu_rope_tests.yml
@@ -142,7 +142,7 @@ jobs:
uses: ./.github/actions/setup_python
with:
version: '3.11'
- should-setup-pip-paths: 'false'
+ set-pip-install-path: 'false'
self-hosted-runner: 'true'
- name: Install OpenVINO Python wheels
diff --git a/.github/workflows/job_jax_layer_tests.yml b/.github/workflows/job_jax_layer_tests.yml
index 3c95539e808..30ad2362191 100644
--- a/.github/workflows/job_jax_layer_tests.yml
+++ b/.github/workflows/job_jax_layer_tests.yml
@@ -24,8 +24,6 @@ on:
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"
HF_TOKEN_PATH_LIN: /secrets/huggingface/token-secondary
@@ -76,6 +74,7 @@ jobs:
path: ${{ env.INSTALL_DIR }}
- name: Setup Variables
+ if: runner.os != 'macOS'
run: |
echo "HF_HUB_CACHE=${{ runner.os == 'Linux' && env.HF_HUB_CACHE_LIN || env.HF_HUB_CACHE_WIN }}" >> "$GITHUB_ENV"
echo "HUGGINGFACE_HUB_CACHE=${{ runner.os == 'Linux' && env.HF_HUB_CACHE_LIN || env.HF_HUB_CACHE_WIN }}" >> "$GITHUB_ENV"
@@ -99,8 +98,8 @@ jobs:
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 }}
- should-setup-pip-paths: ${{ runner.os != 'macOS' }}
+ use-pip-proxy: 'true'
+ set-pip-install-path: ${{ runner.os != 'macOS' }}
self-hosted-runner: ${{ runner.os != 'macOS' }}
- name: Install OpenVINO Python wheels
diff --git a/.github/workflows/job_jax_models_tests.yml b/.github/workflows/job_jax_models_tests.yml
index 39528313fe0..3780173f6d3 100644
--- a/.github/workflows/job_jax_models_tests.yml
+++ b/.github/workflows/job_jax_models_tests.yml
@@ -91,8 +91,9 @@ jobs:
uses: ./.github/actions/setup_python
with:
version: '3.11'
- should-setup-pip-paths: 'false'
+ set-pip-install-path: 'false'
self-hosted-runner: ${{ contains(inputs.runner, 'aks') }}
+ use-pip-proxy: ${{ contains(inputs.runner, 'aks') }}
- name: Install OpenVINO Python wheels
uses: ./.github/actions/install_ov_wheels
diff --git a/.github/workflows/job_keras3_backend.yml b/.github/workflows/job_keras3_backend.yml
index 4eddb8a122b..6e3a1338c07 100644
--- a/.github/workflows/job_keras3_backend.yml
+++ b/.github/workflows/job_keras3_backend.yml
@@ -19,10 +19,6 @@ on:
permissions: read-all
-env:
- PIP_CACHE_PATH_LINUX: /mount/caches/pip/linux
- PIP_CACHE_PATH_WIN: "C:\\mount\\caches\\pip\\win"
-
jobs:
Keras3_OpenVINO_Backend:
name: Keras 3 OpenVINO Backend
@@ -77,8 +73,8 @@ jobs:
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 }}
- should-setup-pip-paths: ${{ runner.os != 'macOS' }}
+ use-pip-proxy: 'true'
+ set-pip-install-path: ${{ runner.os != 'macOS' }}
self-hosted-runner: ${{ runner.os != 'macOS' }}
- name: Install OpenVINO Python wheels
diff --git a/.github/workflows/job_onnx_models_tests.yml b/.github/workflows/job_onnx_models_tests.yml
index 61bb8911c36..40e77732f81 100644
--- a/.github/workflows/job_onnx_models_tests.yml
+++ b/.github/workflows/job_onnx_models_tests.yml
@@ -50,6 +50,8 @@ jobs:
LOGS_FOLDER: ${{ github.workspace }}/onnx_models_tests_logs"
HF_HUB_VERBOSITY: debug
TRANSFORMERS_VERBOSITY: debug
+ PIP_INDEX_URL: ${{ contains(inputs.runner, 'aks') && 'http://pip-proxy.pip-proxy.svc.cluster.local/simple/' || '' }}
+ PIP_TRUSTED_HOST: ${{ contains(inputs.runner, 'aks') && 'pip-proxy.pip-proxy.svc.cluster.local' || '' }}
if: ${{ github.event_name != 'merge_group' }}
steps:
# checkout action cleans up the workspace and have to be the first step
diff --git a/.github/workflows/job_python_api_tests.yml b/.github/workflows/job_python_api_tests.yml
index 9d95d1607a7..9e6851d36fc 100644
--- a/.github/workflows/job_python_api_tests.yml
+++ b/.github/workflows/job_python_api_tests.yml
@@ -23,9 +23,6 @@ on:
permissions: read-all
-env:
- PIP_CACHE_PATH: /mount/caches/pip/linux
-
jobs:
Python_Unit_Tests:
name: Python API tests
@@ -83,8 +80,8 @@ jobs:
uses: ./.github/actions/setup_python
with:
version: ${{ inputs.python-version }}
- pip-cache-path: ${{ runner.os == 'Linux' && env.PIP_CACHE_PATH || '' }}
- should-setup-pip-paths: ${{ runner.os == 'Linux' }}
+ use-pip-proxy: 'true'
+ set-pip-install-path: ${{ runner.os == 'Linux' }}
self-hosted-runner: ${{ runner.os == 'Linux' }}
#
diff --git a/.github/workflows/job_python_unit_tests.yml b/.github/workflows/job_python_unit_tests.yml
index a07ee3c97ed..0588ed87132 100644
--- a/.github/workflows/job_python_unit_tests.yml
+++ b/.github/workflows/job_python_unit_tests.yml
@@ -23,9 +23,6 @@ on:
permissions: read-all
-env:
- PIP_CACHE_PATH: /mount/caches/pip/linux
-
jobs:
Python_Unit_Tests:
name: Python unit tests
@@ -78,9 +75,9 @@ jobs:
uses: ./.github/actions/setup_python
with:
version: ${{ inputs.python-version }}
- pip-cache-path: ${{ runner.os == 'Linux' && env.PIP_CACHE_PATH || '' }}
- should-setup-pip-paths: ${{ runner.os == 'Linux' }}
+ set-pip-install-path: ${{ runner.os == 'Linux' }}
self-hosted-runner: ${{ runner.os == 'Linux' }}
+ use-pip-proxy: ${{ runner.os == 'Linux' }}
- name: Install OpenVINO Python wheels
uses: ./.github/actions/install_ov_wheels
diff --git a/.github/workflows/job_pytorch_fx_layer_tests.yml b/.github/workflows/job_pytorch_fx_layer_tests.yml
index ad1e73f15e0..5a48e0571c0 100644
--- a/.github/workflows/job_pytorch_fx_layer_tests.yml
+++ b/.github/workflows/job_pytorch_fx_layer_tests.yml
@@ -24,8 +24,6 @@ on:
permissions: read-all
env:
- PIP_CACHE_PATH_LINUX: /mount/caches/pip/linux
- PIP_CACHE_PATH_WIN: "C:\\mount\\caches\\pip\\win"
HF_TOKEN_PATH_LIN: /secrets/huggingface/token-secondary
HF_TOKEN_PATH_WIN: "C:\\mount\\secrets\\huggingface\\token-secondary"
@@ -101,8 +99,8 @@ jobs:
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 }}
- should-setup-pip-paths: ${{ runner.os != 'macOS' }}
+ use-pip-proxy: 'true'
+ set-pip-install-path: ${{ runner.os != 'macOS' }}
self-hosted-runner: ${{ runner.os != 'macOS' }}
- name: Install OpenVINO Python wheels
diff --git a/.github/workflows/job_pytorch_layer_tests.yml b/.github/workflows/job_pytorch_layer_tests.yml
index 65fc4efcae3..00ed3f1c198 100644
--- a/.github/workflows/job_pytorch_layer_tests.yml
+++ b/.github/workflows/job_pytorch_layer_tests.yml
@@ -24,8 +24,6 @@ on:
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"
HF_TOKEN_PATH_LIN: /secrets/huggingface/token-secondary
@@ -99,8 +97,8 @@ jobs:
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 }}
- should-setup-pip-paths: ${{ runner.os != 'macOS' }}
+ use-pip-proxy: 'true'
+ set-pip-install-path: ${{ runner.os != 'macOS' }}
self-hosted-runner: ${{ runner.os != 'macOS' }}
- name: Install OpenVINO Python wheels
@@ -109,15 +107,7 @@ jobs:
wheels-dir-path: ${{ env.INSTALL_DIR }}
wheels-to-install: 'openvino'
- - name: Install Pytorch Layer tests dependencies (Windows)
- if: runner.os == 'Windows'
- env:
- PIP_INDEX_URL: "http://pip-proxy.pip-proxy.svc.cluster.local/simple/"
- PIP_TRUSTED_HOST: "pip-proxy.pip-proxy.svc.cluster.local"
- run: python3 -m pip install --no-cache-dir -r ${{ env.INSTALL_TEST_DIR }}/requirements_pytorch
-
- name: Install Pytorch Layer tests dependencies
- if: runner.os != 'Windows'
run: |
# pytorch test requirements
python3 -m pip install -r ${{ env.INSTALL_TEST_DIR }}/requirements_pytorch
diff --git a/.github/workflows/job_pytorch_models_tests.yml b/.github/workflows/job_pytorch_models_tests.yml
index c5e06718d80..47d403cc95b 100644
--- a/.github/workflows/job_pytorch_models_tests.yml
+++ b/.github/workflows/job_pytorch_models_tests.yml
@@ -89,8 +89,9 @@ jobs:
uses: ./.github/actions/setup_python
with:
version: '3.11'
- should-setup-pip-paths: 'false'
+ set-pip-install-path: 'false'
self-hosted-runner: ${{ contains(inputs.runner, 'aks') }}
+ use-pip-proxy: ${{ contains(inputs.runner, 'aks') }}
- name: Install OpenVINO Python wheels
uses: ./.github/actions/install_ov_wheels
diff --git a/.github/workflows/job_samples_tests.yml b/.github/workflows/job_samples_tests.yml
index 63a040a84e1..49b1d3d5594 100644
--- a/.github/workflows/job_samples_tests.yml
+++ b/.github/workflows/job_samples_tests.yml
@@ -82,7 +82,16 @@ jobs:
uses: ./.github/actions/setup_python
with:
version: '3.11'
- should-setup-pip-paths: 'false'
+ set-pip-install-path: 'false'
+ self-hosted-runner: ${{ contains(inputs.runner, 'aks') }}
+ use-pip-proxy: ${{ contains(inputs.runner, 'aks') }}
+
+ # Have to do it explicitly here, because `setup_python` is not executed for Linux
+ - name: Configure pip to use caching proxy
+ if: runner.os == 'Linux' && contains(inputs.runner, 'aks')
+ run: |
+ echo "PIP_INDEX_URL=http://pip-proxy.pip-proxy.svc.cluster.local/simple/" >> "$GITHUB_ENV"
+ echo "PIP_TRUSTED_HOST=pip-proxy.pip-proxy.svc.cluster.local" >> "$GITHUB_ENV"
- name: Configure Developer Command Prompt for Microsoft Visual C++
if: runner.os == 'Windows'
diff --git a/.github/workflows/job_tensorflow_layer_tests.yml b/.github/workflows/job_tensorflow_layer_tests.yml
index c374d3dfb69..e9acf70b0ed 100644
--- a/.github/workflows/job_tensorflow_layer_tests.yml
+++ b/.github/workflows/job_tensorflow_layer_tests.yml
@@ -24,8 +24,6 @@ on:
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"
HF_TOKEN_PATH_LIN: /secrets/huggingface/token-secondary
@@ -104,8 +102,8 @@ jobs:
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 }}
- should-setup-pip-paths: ${{ runner.os != 'macOS' }}
+ use-pip-proxy: 'true'
+ set-pip-install-path: ${{ runner.os != 'macOS' }}
self-hosted-runner: ${{ runner.os != 'macOS' }}
- name: Install OpenVINO Python wheels
diff --git a/.github/workflows/job_tensorflow_models_tests.yml b/.github/workflows/job_tensorflow_models_tests.yml
index 26551e10516..0b182684c3a 100644
--- a/.github/workflows/job_tensorflow_models_tests.yml
+++ b/.github/workflows/job_tensorflow_models_tests.yml
@@ -95,8 +95,9 @@ jobs:
uses: ./.github/actions/setup_python
with:
version: '3.11'
- should-setup-pip-paths: 'false'
+ set-pip-install-path: 'false'
self-hosted-runner: ${{ contains(inputs.runner, 'aks') }}
+ use-pip-proxy: ${{ contains(inputs.runner, 'aks') }}
- name: Install OpenVINO Python wheels
uses: ./.github/actions/install_ov_wheels
diff --git a/.github/workflows/job_tokenizers.yml b/.github/workflows/job_tokenizers.yml
index cfaad2cff16..79f0e18a6c5 100644
--- a/.github/workflows/job_tokenizers.yml
+++ b/.github/workflows/job_tokenizers.yml
@@ -32,8 +32,6 @@ on:
permissions: read-all
env:
- PIP_CACHE_PATH_LINUX: /mount/caches/pip/linux
- PIP_CACHE_PATH_WIN: "C:\\mount\\caches\\pip\\win"
TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}
jobs:
@@ -82,8 +80,8 @@ jobs:
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 }}
- should-setup-pip-paths: ${{ runner.os != 'macOS' }}
+ use-pip-proxy: 'true'
+ set-pip-install-path: ${{ runner.os != 'macOS' }}
self-hosted-runner: ${{ runner.os != 'macOS' }}
- name: Download OpenVINO artifacts (wheels)
diff --git a/.github/workflows/linux_arm64.yml b/.github/workflows/linux_arm64.yml
index 16e1a3e8109..d6c16aee709 100644
--- a/.github/workflows/linux_arm64.yml
+++ b/.github/workflows/linux_arm64.yml
@@ -26,7 +26,7 @@ concurrency:
permissions: read-all
env:
- PIP_CACHE_PATH: /mount/caches/pip/linux
+
TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}
jobs:
diff --git a/.github/workflows/linux_conditional_compilation.yml b/.github/workflows/linux_conditional_compilation.yml
index 67a0ae0ffc4..0f0f693358e 100644
--- a/.github/workflows/linux_conditional_compilation.yml
+++ b/.github/workflows/linux_conditional_compilation.yml
@@ -26,7 +26,7 @@ concurrency:
permissions: read-all
env:
- PIP_CACHE_PATH: /mount/caches/pip/linux
+
PYTHON_VERSION: '3.11'
TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}
diff --git a/.github/workflows/linux_riscv_conan.yml b/.github/workflows/linux_riscv_conan.yml
index 69b12162414..12c9cd23bd7 100644
--- a/.github/workflows/linux_riscv_conan.yml
+++ b/.github/workflows/linux_riscv_conan.yml
@@ -117,6 +117,8 @@ jobs:
CCACHE_DIR: /__w/openvino/openvino/ccache
CCACHE_TEMPDIR: /__w/openvino/openvino/ccache_temp
CCACHE_MAXSIZE: 2G
+ PIP_INDEX_URL: "http://pip-proxy.pip-proxy.svc.cluster.local/simple/"
+ PIP_TRUSTED_HOST: "pip-proxy.pip-proxy.svc.cluster.local"
steps:
- name: Clone OpenVINO
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
diff --git a/.github/workflows/linux_sanitizers.yml b/.github/workflows/linux_sanitizers.yml
index cb5ba6ffcaa..8d7e1711f49 100644
--- a/.github/workflows/linux_sanitizers.yml
+++ b/.github/workflows/linux_sanitizers.yml
@@ -126,6 +126,8 @@ jobs:
CMAKE_GENERATOR: 'Ninja'
GITHUB_WORKSPACE: '/__w/openvino/openvino'
OPENVINO_CONTRIB_REPO: /__w/openvino/openvino/openvino_contrib
+ PIP_INDEX_URL: "http://pip-proxy.pip-proxy.svc.cluster.local/simple/"
+ PIP_TRUSTED_HOST: "pip-proxy.pip-proxy.svc.cluster.local"
steps:
- name: Append the environment variable - load SCCACHE_AZURE_CONNECTION_STRING from file
diff --git a/.github/workflows/mac_arm64.yml b/.github/workflows/mac_arm64.yml
index 05e83a16856..cef46b574f3 100644
--- a/.github/workflows/mac_arm64.yml
+++ b/.github/workflows/mac_arm64.yml
@@ -126,7 +126,7 @@ jobs:
uses: ./openvino/.github/actions/setup_python
with:
version: ${{ env.PYTHON_VERSION }}
- should-setup-pip-paths: 'false'
+ set-pip-install-path: 'false'
self-hosted-runner: 'false'
- name: Install python dependencies
@@ -232,28 +232,28 @@ jobs:
uses: ./openvino/.github/actions/setup_python
with:
version: "3.10"
- should-setup-pip-paths: 'false'
+ set-pip-install-path: 'false'
self-hosted-runner: 'false'
- name: Setup Python 3.12
uses: ./openvino/.github/actions/setup_python
with:
version: "3.12"
- should-setup-pip-paths: 'false'
+ set-pip-install-path: 'false'
self-hosted-runner: 'false'
- name: Setup Python 3.13
uses: ./openvino/.github/actions/setup_python
with:
version: "3.13"
- should-setup-pip-paths: 'false'
+ set-pip-install-path: 'false'
self-hosted-runner: 'false'
- name: Setup Python 3.14t
uses: ./openvino/.github/actions/setup_python
with:
version: "3.14t"
- should-setup-pip-paths: 'false'
+ set-pip-install-path: 'false'
self-hosted-runner: 'false'
allow-prereleases: 'true'
@@ -261,7 +261,7 @@ jobs:
uses: ./openvino/.github/actions/setup_python
with:
version: "3.14"
- should-setup-pip-paths: 'false'
+ set-pip-install-path: 'false'
self-hosted-runner: 'false'
- name: Build additional Python wheels (3.10-3.14t)
@@ -290,7 +290,7 @@ jobs:
uses: ./openvino/.github/actions/setup_python
with:
version: ${{ env.PYTHON_VERSION }}
- should-setup-pip-paths: 'false'
+ set-pip-install-path: 'false'
self-hosted-runner: 'false'
- name: Cmake & Build - OpenVINO Contrib
diff --git a/.github/workflows/manylinux_2_28.yml b/.github/workflows/manylinux_2_28.yml
index 2d7a3c6ca93..f19216337ff 100644
--- a/.github/workflows/manylinux_2_28.yml
+++ b/.github/workflows/manylinux_2_28.yml
@@ -25,9 +25,6 @@ concurrency:
permissions: read-all
-env:
- PIP_CACHE_PATH: /mount/caches/pip/linux
-
jobs:
Smart_CI:
runs-on: ubuntu-latest
@@ -130,6 +127,8 @@ jobs:
MANIFEST_PATH: ${{ github.workspace }}/manifest.yml
PRODUCT_TYPE: public_manylinux_2_28_x86_64_release
NODE_VERSION: 22
+ PIP_INDEX_URL: "http://pip-proxy.pip-proxy.svc.cluster.local/simple/"
+ PIP_TRUSTED_HOST: "pip-proxy.pip-proxy.svc.cluster.local"
steps:
- name: Append the environment variable - load SCCACHE_AZURE_CONNECTION_STRING from file
@@ -199,8 +198,6 @@ jobs:
python_path=/opt/python/cp${simpler_python_version}-cp${simpler_python_version}/bin/python3
fi
- PIP_VER=$(${python_path} -c "import pip; print(pip.__version__)")
- export "PIP_CACHE_DIR=${{ env.PIP_CACHE_PATH }}/${PIP_VER}"
${python_path} -m pip install -r ${{ env.OPENVINO_REPO }}/src/bindings/python/wheel/requirements-dev.txt
if [[ $PY_VER == "3.14t" ]]; then
diff --git a/.github/workflows/ubuntu_22.yml b/.github/workflows/ubuntu_22.yml
index 59713816aed..7c8d919354a 100644
--- a/.github/workflows/ubuntu_22.yml
+++ b/.github/workflows/ubuntu_22.yml
@@ -32,7 +32,7 @@ concurrency:
permissions: read-all
env:
- PIP_CACHE_PATH: /mount/caches/pip/linux
+
PYTHON_VERSION: '3.11'
TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}
@@ -237,8 +237,9 @@ jobs:
uses: ./openvino/.github/actions/setup_python
with:
version: ${{ env.PYTHON_VERSION }}
- should-setup-pip-paths: 'false'
- self-hosted-runner: 'false'
+ set-pip-install-path: 'false'
+ self-hosted-runner: 'true'
+ use-pip-proxy: 'true'
- name: Install Dependencies
run: python3 -m pip install -r ${CONFORMANCE_TOOLS_DIR}/requirements.txt
diff --git a/.github/workflows/ubuntu_22_arm64_cross_compilation.yml b/.github/workflows/ubuntu_22_arm64_cross_compilation.yml
index 16401ead1db..cb339e85fe1 100644
--- a/.github/workflows/ubuntu_22_arm64_cross_compilation.yml
+++ b/.github/workflows/ubuntu_22_arm64_cross_compilation.yml
@@ -26,7 +26,7 @@ concurrency:
permissions: read-all
env:
- PIP_CACHE_PATH: /mount/caches/pip/linux
+
PYTHON_VERSION: '3.11'
TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}
diff --git a/.github/workflows/ubuntu_24.yml b/.github/workflows/ubuntu_24.yml
index 119a817693a..b32fe9d000c 100644
--- a/.github/workflows/ubuntu_24.yml
+++ b/.github/workflows/ubuntu_24.yml
@@ -29,9 +29,6 @@ concurrency:
permissions: read-all
-env:
- PIP_CACHE_PATH: /mount/caches/pip/linux
-
jobs:
Smart_CI:
runs-on: ubuntu-latest
diff --git a/.github/workflows/windows_conditional_compilation.yml b/.github/workflows/windows_conditional_compilation.yml
index 6b3414874eb..e6ae51508ad 100644
--- a/.github/workflows/windows_conditional_compilation.yml
+++ b/.github/workflows/windows_conditional_compilation.yml
@@ -84,6 +84,7 @@ jobs:
BUILD_DIR: "${{ github.workspace }}\\openvino_build"
MODELS_PATH: "${{ github.workspace }}\\testdata"
SELECTIVE_BUILD_STAT_DIR: "${{ github.workspace }}\\selective_build_stat"
+
# TODO: specify version of compiler here
if: ${{ !needs.smart_ci.outputs.skip_workflow && github.event_name != 'merge_group' }}
@@ -119,8 +120,9 @@ jobs:
uses: ./openvino/.github/actions/setup_python
with:
version: ${{ env.PYTHON_VERSION }}
- should-setup-pip-paths: 'false'
- self-hosted-runner: 'false'
+ set-pip-install-path: 'false'
+ self-hosted-runner: 'true'
+ use-pip-proxy: 'true'
- name: Install certifi
run: |
@@ -334,8 +336,9 @@ jobs:
uses: ./openvino/.github/actions/setup_python
with:
version: ${{ env.PYTHON_VERSION }}
- should-setup-pip-paths: 'false'
- self-hosted-runner: 'false'
+ set-pip-install-path: 'false'
+ self-hosted-runner: 'true'
+ use-pip-proxy: 'true'
- name: CMake configure - CC ON
run: |
diff --git a/.github/workflows/windows_vs2022_release.yml b/.github/workflows/windows_vs2022_release.yml
index e4be688a8bd..f02cf8f590b 100644
--- a/.github/workflows/windows_vs2022_release.yml
+++ b/.github/workflows/windows_vs2022_release.yml
@@ -24,7 +24,6 @@ concurrency:
env:
TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}
- PIP_CACHE_PATH: "C:\\mount\\caches\\pip\\win"
PYTHON_VERSION: '3.11'
permissions: read-all
@@ -99,7 +98,6 @@ jobs:
INSTALL_WHEELS_DIR: "${{ github.workspace }}\\install\\wheels"
SAMPLES_INSTALL_DIR: "${{ github.workspace }}\\install\\samples"
BUILD_DIR: "${{ github.workspace }}\\build"
-
steps:
- name: Download OpenVINO package
uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
@@ -140,8 +138,9 @@ jobs:
uses: ./openvino/.github/actions/setup_python
with:
version: ${{ env.PYTHON_VERSION }}
- should-setup-pip-paths: 'false'
+ set-pip-install-path: 'false'
self-hosted-runner: 'true'
+ use-pip-proxy: 'true'
# Test with the short names of the arguments
- name: Build cpp samples
@@ -163,7 +162,7 @@ jobs:
- name: Samples tests
run: |
python3 -m pip install --ignore-installed PyYAML -r ./tests/smoke_tests/requirements.txt
- # Install pytest-timeout to abort hanging samples and dump tracebacks
+ # Install pytest-timeout to abort hanging samples and dump tracebacks
python3 -m pip install pytest-timeout==2.4.0
. "./setupvars.ps1"
$Env:PYTHONCOERCECLOCALE="warn"
@@ -207,6 +206,8 @@ jobs:
OPENVINO_JS_DIR: "${{ github.workspace }}\\openvino\\src\\bindings\\js\\node"
OPENVINO_JS_LIBS_DIR: "${{ github.workspace }}\\openvino\\src\\bindings\\js\\node\\bin"
NODE_VERSION: 21
+ PIP_INDEX_URL: "http://pip-proxy.pip-proxy.svc.cluster.local/simple/"
+ PIP_TRUSTED_HOST: "pip-proxy.pip-proxy.svc.cluster.local"
if: fromJSON(needs.smart_ci.outputs.affected_components).JS_API
steps:
@@ -332,8 +333,8 @@ jobs:
uses: ./openvino/.github/actions/setup_python
with:
version: ${{ env.PYTHON_VERSION }}
- pip-cache-path: ${{ env.PIP_CACHE_PATH }}
- should-setup-pip-paths: 'true'
+ use-pip-proxy: 'true'
+ set-pip-install-path: 'true'
self-hosted-runner: 'true'
- name: Install OpenVINO Python wheels
@@ -343,33 +344,27 @@ jobs:
wheels-to-install: 'openvino'
- name: Install Python API tests dependencies
- env:
- PIP_INDEX_URL: "http://pip-proxy.pip-proxy.svc.cluster.local/simple/"
- PIP_TRUSTED_HOST: "pip-proxy.pip-proxy.svc.cluster.local"
run: |
# To enable pytest parallel features
- python3 -m pip install --no-cache-dir pytest-xdist[psutil]
+ python3 -m pip install pytest-xdist[psutil]
# For torchvision to OpenVINO preprocessing converter
- python3 -m pip install --no-cache-dir -r ${{ env.INSTALL_TEST_DIR }}/python/preprocess/torchvision/requirements.txt
+ python3 -m pip install -r ${{ env.INSTALL_TEST_DIR }}/python/preprocess/torchvision/requirements.txt
# For validation of Python API
- python3 -m pip install --no-cache-dir -r ${{ env.INSTALL_TEST_DIR }}/bindings/python/requirements_test.txt
+ python3 -m pip install -r ${{ env.INSTALL_TEST_DIR }}/bindings/python/requirements_test.txt
# ONNX tests requirements
- python3 -m pip install --no-cache-dir -r ${{ env.INSTALL_TEST_DIR }}/requirements_onnx
+ python3 -m pip install -r ${{ env.INSTALL_TEST_DIR }}/requirements_onnx
# For getting rid of SSL issues during model downloading for unit tests
- python3 -m pip install --no-cache-dir certifi
+ python3 -m pip install certifi
- name: Set SSL_CERT_FILE for model downloading for unit tests
run: echo SSL_CERT_FILE=$(python3 -m certifi) >> $env:GITHUB_ENV
- name: Install Python Layer tests dependencies
- env:
- PIP_INDEX_URL: "http://pip-proxy.pip-proxy.svc.cluster.local/simple/"
- PIP_TRUSTED_HOST: "pip-proxy.pip-proxy.svc.cluster.local"
- run: python3 -m pip install --no-cache-dir -r ${{ env.LAYER_TESTS_INSTALL_DIR }}/requirements.txt
+ run: python3 -m pip install -r ${{ env.LAYER_TESTS_INSTALL_DIR }}/requirements.txt
- name: Python API Tests
#if: fromJSON(needs.smart_ci.outputs.affected_components).Python_API.test # Ticket: 127101
@@ -481,8 +476,8 @@ jobs:
uses: ./openvino/.github/actions/setup_python
with:
version: ${{ matrix.python-version }}
- pip-cache-path: ${{ env.PIP_CACHE_PATH }}
- should-setup-pip-paths: 'false'
+ use-pip-proxy: 'true'
+ set-pip-install-path: 'false'
self-hosted-runner: 'true'
- name: Install OpenVINO Python wheels
@@ -622,8 +617,9 @@ jobs:
uses: ./openvino/.github/actions/setup_python
with:
version: ${{ env.PYTHON_VERSION }}
- should-setup-pip-paths: 'false'
+ set-pip-install-path: 'false'
self-hosted-runner: 'true'
+ use-pip-proxy: 'true'
- name: Install python dependencies
run: python3 -m pip install -r ${{ github.workspace }}\install\tests\functional_test_utils\layer_tests_summary\requirements.txt
diff --git a/docs/dev/ci/github_actions/custom_actions.md b/docs/dev/ci/github_actions/custom_actions.md
index fc36cfb30a8..ee0ff5bb622 100644
--- a/docs/dev/ci/github_actions/custom_actions.md
+++ b/docs/dev/ci/github_actions/custom_actions.md
@@ -27,14 +27,14 @@ Since `actions/setup-python` does not work on the Linux ARM64 machines,
uses: ./openvino/.github/actions/setup_python
with:
version: '3.11'
- pip-cache-path: ${{ env.PIP_CACHE_PATH }}
- should-setup-pip-paths: 'true'
+ use-pip-proxy: 'true'
+ set-pip-install-path: 'true'
self-hosted-runner: 'true'
```
where:
* `version` - the Python version to install in the `MAJOR.MINOR` format
* `pip-cache-path` - the path to the `pip` cache on the mounted share. Read more in the [shares and caches](./caches.md) documentation
-* `should-setup-pip-paths` - indicates whether the action should set up the `PIP_CACHE_DIR` and `PIP_INSTALL_PATH` environment variables for later usage
+* `set-pip-install-path` - indicates whether the action should set up the `PIP_CACHE_DIR` and `PIP_INSTALL_PATH` environment variables for later usage
* `self-hosted-runner` - indicates whether the runner is self-hosted. Learn more about [available runners](./runners.md)
## System Info Print