Skip to content

Commit 3faa160

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

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

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

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

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

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

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

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

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

437437
NVIDIA_Plugin:
438438
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)