Skip to content

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

[CI] [GHA] Remove usage of `sudo` from workflows (#29311)

Andrei Kashchikhin6aec418fa8dc
diff --git a/.github/workflows/job_pytorch_models_tests.yml b/.github/workflows/job_pytorch_models_tests.yml
index 1a8363137cb..792b044c161 100644
--- a/.github/workflows/job_pytorch_models_tests.yml
+++ b/.github/workflows/job_pytorch_models_tests.yml
@@ -37,19 +37,6 @@ jobs:
MODEL_HUB_TESTS_INSTALL_DIR: ${{ github.workspace }}/install/tests/model_hub_tests
USE_SYSTEM_CACHE: False # Using remote HuggingFace cache
steps:
- - name: Check sudo
- if: ${{ runner.os == 'Linux' }}
- run: if [ "$(id -u)" -eq 0 ]; then apt update && apt --assume-yes install sudo; fi
-
- - name: Set apt retries
- if: runner.os == 'Linux'
- run: |
- if [ "$(id -u)" -eq 0 ]; then
- echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/80-retries
- else
- sudo sh -c "echo 'Acquire::Retries \"10\";' >> /etc/apt/apt.conf.d/80-retries"
- fi
-
- name: Download OpenVINO artifacts (tarballs)
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
@@ -92,13 +79,6 @@ jobs:
sparse-checkout-cone-mode: false
path: 'openvino'
- - name: Install dependencies
- if: ${{ runner.os == 'Linux' }}
- run: |
- # install git (required to build pip deps from the sources)
- # install 'g++' to build 'detectron2' and 'natten' wheels
- sudo apt-get install --assume-yes --no-install-recommends g++ git ca-certificates
-
- name: Setup Python 3.11
uses: ./openvino/.github/actions/setup_python
with:
diff --git a/.github/workflows/ubuntu_22.yml b/.github/workflows/ubuntu_22.yml
index bd6ce84bf35..977dedaf2e7 100644
--- a/.github/workflows/ubuntu_22.yml
+++ b/.github/workflows/ubuntu_22.yml
@@ -204,10 +204,7 @@ jobs:
self-hosted-runner: 'false'
- name: Install Dependencies
- run: |
- sudo -E ${INSTALL_DIR}/install_dependencies/install_openvino_dependencies.sh -c=core -y
-
- python3 -m pip install -r ${CONFORMANCE_TOOLS_DIR}/requirements.txt
+ run: python3 -m pip install -r ${CONFORMANCE_TOOLS_DIR}/requirements.txt
#
# Tests