Skip to content

Commit 6aec418

Browse files
authored
[CI] [GHA] Remove usage of sudo from workflows (#29311)
### Tickets: - *161968*
1 parent 619d7d5 commit 6aec418

File tree

2 files changed

+1
-24
lines changed

2 files changed

+1
-24
lines changed

.github/workflows/job_pytorch_models_tests.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,6 @@ jobs:
3737
MODEL_HUB_TESTS_INSTALL_DIR: ${{ github.workspace }}/install/tests/model_hub_tests
3838
USE_SYSTEM_CACHE: False # Using remote HuggingFace cache
3939
steps:
40-
- name: Check sudo
41-
if: ${{ runner.os == 'Linux' }}
42-
run: if [ "$(id -u)" -eq 0 ]; then apt update && apt --assume-yes install sudo; fi
43-
44-
- name: Set apt retries
45-
if: runner.os == 'Linux'
46-
run: |
47-
if [ "$(id -u)" -eq 0 ]; then
48-
echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/80-retries
49-
else
50-
sudo sh -c "echo 'Acquire::Retries \"10\";' >> /etc/apt/apt.conf.d/80-retries"
51-
fi
52-
5340
- name: Download OpenVINO artifacts (tarballs)
5441
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
5542
with:
@@ -92,13 +79,6 @@ jobs:
9279
sparse-checkout-cone-mode: false
9380
path: 'openvino'
9481

95-
- name: Install dependencies
96-
if: ${{ runner.os == 'Linux' }}
97-
run: |
98-
# install git (required to build pip deps from the sources)
99-
# install 'g++' to build 'detectron2' and 'natten' wheels
100-
sudo apt-get install --assume-yes --no-install-recommends g++ git ca-certificates
101-
10282
- name: Setup Python 3.11
10383
uses: ./openvino/.github/actions/setup_python
10484
with:

.github/workflows/ubuntu_22.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,7 @@ jobs:
204204
self-hosted-runner: 'false'
205205

206206
- name: Install Dependencies
207-
run: |
208-
sudo -E ${INSTALL_DIR}/install_dependencies/install_openvino_dependencies.sh -c=core -y
209-
210-
python3 -m pip install -r ${CONFORMANCE_TOOLS_DIR}/requirements.txt
207+
run: python3 -m pip install -r ${CONFORMANCE_TOOLS_DIR}/requirements.txt
211208

212209
#
213210
# Tests

0 commit comments

Comments
 (0)