Skip to content

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

[GHA] Stop setting PIP_CACHE_DIR when pip caching proxy is used (#38055)

Andrey Babushkin464140bba015
diff --git a/.github/workflows/job_llm_accuracy_tests.yml b/.github/workflows/job_llm_accuracy_tests.yml
index fee21fdfe48..9a15e33add9 100644
--- a/.github/workflows/job_llm_accuracy_tests.yml
+++ b/.github/workflows/job_llm_accuracy_tests.yml
@@ -88,7 +88,7 @@ jobs:
uses: ./.github/actions/setup_python
with:
version: '3.12'
- pip-cache-path: '/mnt/caches/pip'
+ pip-cache-path: ${{ inputs.use-pip-proxy && '' || '/mnt/caches/pip' }}
set-pip-install-path: 'false'
self-hosted-runner: true
use-pip-proxy: ${{ inputs.use-pip-proxy }}
diff --git a/.github/workflows/job_npu_tests.yml b/.github/workflows/job_npu_tests.yml
index 5662e04eeab..53368023883 100644
--- a/.github/workflows/job_npu_tests.yml
+++ b/.github/workflows/job_npu_tests.yml
@@ -27,7 +27,6 @@ permissions: read-all
env:
PYTHON_VERSION: '3.11'
- PIP_CACHE_PATH: "C:\\mount\\caches\\pip\\win"
# To debug NPU compiler, set OV_NPU_LOG_LEVEL=LOG_INFO or higher
# OV_NPU_LOG_LEVEL: 'LOG_INFO'
@@ -87,7 +86,6 @@ jobs:
uses: ./openvino/.github/actions/setup_python
with:
version: ${{ env.PYTHON_VERSION }}
- pip-cache-path: ${{ env.PIP_CACHE_PATH }}
set-pip-install-path: 'false'
self-hosted-runner: ${{ contains(inputs.runner, 'aks') }}
use-pip-proxy: ${{ contains(inputs.runner, 'aks') }}