Skip to content

Commit f43736e

Browse files
akashchimryzhov
andauthored
[CI] [GHA] Add HF_TOKEN to jobs working with HuggingFace (#29814)
### Details: - Port of #29810 Co-authored-by: Mikhail Ryzhov <mikhail.ryzhov@intel.com>
1 parent d8584dc commit f43736e

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

.github/workflows/ubuntu_22.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ jobs:
270270
uses: ./.github/workflows/job_onnx_runtime.yml
271271
with:
272272
runner: 'aks-linux-16-cores-32gb'
273-
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"}'
273+
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"}'
274274
sccache-azure-key-prefix: 'ubuntu22_x86_64_onnxruntime'
275275

276276
ONNX_Models:
@@ -281,7 +281,7 @@ jobs:
281281
uses: ./.github/workflows/job_onnx_models_tests.yml
282282
with:
283283
runner: 'aks-linux-16-cores-64gb'
284-
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"]}'
284+
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
285285

286286
CXX_Unit_Tests:
287287
name: C++ unit tests
@@ -319,7 +319,7 @@ jobs:
319319
uses: ./.github/workflows/job_tensorflow_layer_tests.yml
320320
with:
321321
runner: 'aks-linux-4-cores-16gb'
322-
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"]}'
322+
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
323323
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
324324
python-version: '3.11'
325325

@@ -329,7 +329,7 @@ jobs:
329329
uses: ./.github/workflows/job_pytorch_layer_tests.yml
330330
with:
331331
runner: 'aks-linux-4-cores-16gb'
332-
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"]}'
332+
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
333333
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
334334
python-version: '3.11'
335335

@@ -339,7 +339,7 @@ jobs:
339339
uses: ./.github/workflows/job_jax_layer_tests.yml
340340
with:
341341
runner: 'aks-linux-4-cores-16gb'
342-
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"]}'
342+
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
343343
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
344344
python-version: '3.11'
345345

@@ -373,7 +373,7 @@ jobs:
373373
with:
374374
runner: 'aks-linux-8-cores-16gb'
375375
model_scope: 'precommit'
376-
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"]}'
376+
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
377377

378378
TensorFlow_Models_Tests_Nightly_TF_HUB:
379379
name: TensorFlow TF Hub Models tests
@@ -383,7 +383,7 @@ jobs:
383383
with:
384384
runner: 'aks-linux-8-cores-64gb'
385385
model_scope: 'nightly_tf_hub'
386-
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"]}'
386+
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
387387

388388
TensorFlow_Models_Tests_Nightly_HF:
389389
name: TensorFlow Hugging Face Models tests
@@ -393,7 +393,7 @@ jobs:
393393
with:
394394
runner: 'aks-linux-8-cores-64gb'
395395
model_scope: 'nightly_hf'
396-
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"]}'
396+
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
397397

398398
PyTorch_Models_Tests:
399399
name: PyTorch Models tests
@@ -403,7 +403,7 @@ jobs:
403403
with:
404404
runner: 'aks-linux-8-cores-64gb'
405405
model_scope: 'precommit'
406-
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"]}'
406+
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
407407

408408
PyTorch_Models_Tests_Nightly_Scope1:
409409
name: PyTorch Models Nightly Scope1 tests
@@ -413,7 +413,7 @@ jobs:
413413
with:
414414
runner: 'aks-linux-16-cores-64gb'
415415
model_scope: 'nightly_scope1'
416-
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"]}'
416+
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
417417

418418
PyTorch_Models_Tests_Nightly_Scope2:
419419
name: PyTorch Models Nightly Scope2 tests
@@ -423,7 +423,7 @@ jobs:
423423
with:
424424
runner: 'aks-linux-16-cores-64gb'
425425
model_scope: 'nightly_scope2'
426-
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"]}'
426+
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
427427

428428
JAX_Models_Tests_Precommit:
429429
name: JAX/Flax Models tests
@@ -433,7 +433,7 @@ jobs:
433433
with:
434434
runner: 'aks-linux-8-cores-16gb'
435435
model_scope: 'precommit'
436-
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"]}'
436+
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
437437

438438
NVIDIA_Plugin:
439439
name: NVIDIA plugin

.github/workflows/ubuntu_24.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ jobs:
152152
uses: ./.github/workflows/job_pytorch_layer_tests.yml
153153
with:
154154
runner: 'aks-linux-4-cores-16gb'
155-
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_24_04_x64 }}", "volumes": ["/mount:/mount"]}'
155+
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_24_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
156156
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
157157
python-version: '3.12'
158158

@@ -162,7 +162,7 @@ jobs:
162162
uses: ./.github/workflows/job_jax_layer_tests.yml
163163
with:
164164
runner: 'aks-linux-4-cores-16gb'
165-
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_24_04_x64 }}", "volumes": ["/mount:/mount"]}'
165+
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_24_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
166166
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
167167
python-version: '3.12'
168168

@@ -172,7 +172,7 @@ jobs:
172172
uses: ./.github/workflows/job_tensorflow_layer_tests.yml
173173
with:
174174
runner: 'aks-linux-4-cores-16gb'
175-
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_24_04_x64 }}", "volumes": ["/mount:/mount"]}'
175+
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_24_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e HF_TOKEN"}'
176176
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
177177
python-version: '3.12'
178178

0 commit comments

Comments
 (0)