@@ -435,14 +435,15 @@ jobs:
435
435
- name : ' Whisper'
436
436
marker : ' whisper'
437
437
cmd : ' tests/python_tests/samples'
438
- needs : [ openvino_download, genai_build_cmake, genai_build_wheel, genai_build_samples ]
438
+ needs : [ openvino_download, genai_build_cmake, genai_build_wheel, genai_build_samples, genai_build_nodejs ]
439
439
timeout-minutes : 45
440
440
defaults :
441
441
run :
442
442
shell : bash
443
443
runs-on : macos-13
444
444
env :
445
445
INSTALL_DIR : ${{ github.workspace }}/ov
446
+ LATEST_OV_DIR : ${{ github.workspace }}/ov_latest
446
447
SRC_DIR : ${{ github.workspace }}/src
447
448
BUILD_DIR : ${{ github.workspace }}/build
448
449
@@ -460,6 +461,20 @@ jobs:
460
461
path : ${{ env.INSTALL_DIR }}
461
462
merge-multiple : true
462
463
464
+ - name : Download OpenVINO JS Bildings Artifacts
465
+ uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
466
+ with :
467
+ name : ${{ needs.openvino_download.outputs.ov_latest_artifact_name }}
468
+ path : ${{ env.LATEST_OV_DIR }}
469
+ merge-multiple : true
470
+
471
+ - name : Download GenAI JS Bildings Artifacts
472
+ uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
473
+ with :
474
+ name : genai_nodejs_bindings
475
+ path : ${{ env.SRC_DIR }}/src/js/bin
476
+ merge-multiple : true
477
+
463
478
- name : Setup Python ${{ env.PYTHON_VERSION }}
464
479
uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
465
480
with :
@@ -481,12 +496,32 @@ jobs:
481
496
- name : Fix C++ samples permissions
482
497
run : chmod +x ${{ env.INSTALL_DIR }}/samples_bin/*
483
498
499
+ - name : Setup NodeJS
500
+ uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
501
+ with :
502
+ node-version : 21
503
+
504
+ - name : Install GenAI NPM package
505
+ working-directory : ${{ env.SRC_DIR }}/src/js
506
+ run : |
507
+ npm install --verbose
508
+ rm -rf node_modules/openvino-node/bin
509
+ cp -R ${{ env.LATEST_OV_DIR }}/openvino_js_package node_modules/openvino-node/bin
510
+
511
+ - name : Install NPM dependencies for samples
512
+ working-directory : ${{ env.SRC_DIR }}/samples/js/text_generation
513
+ run : |
514
+ npm install --verbose
515
+ rm -rf node_modules/openvino-node/bin
516
+ cp -R ${{ env.LATEST_OV_DIR }}/openvino_js_package node_modules/openvino-node/bin
517
+
484
518
- name : Test Samples (Python and C++)
485
519
run : |
486
520
source ${{ env.INSTALL_DIR }}/setupvars.sh
487
521
python -m pytest -vs ${{ env.SRC_DIR }}/${{ matrix.test.cmd }} -m "${{ matrix.test.marker }}"
488
522
env :
489
523
SAMPLES_PY_DIR : " ${{ env.INSTALL_DIR }}/samples/python"
524
+ SAMPLES_JS_DIR : " ${{ env.SRC_DIR }}/samples/js"
490
525
SAMPLES_CPP_DIR : " ${{ env.INSTALL_DIR }}/samples_bin"
491
526
SAMPLES_C_DIR : " ${{ env.INSTALL_DIR }}/samples_bin"
492
527
0 commit comments