Skip to content
24 changes: 8 additions & 16 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -475,15 +475,10 @@ jobs:
python-version: ${{ env.PYTHON_VERSION }}
cache: 'pip'

- name: Install OpenVINO wheel
run: |
python3 -m pip install openvino==${{ needs.openvino_download.outputs.ov_version }} ${{ needs.openvino_download.outputs.ov_wheel_source }}
working-directory: ${{ env.INSTALL_DIR }}

- name: Install GenAI wheels
uses: ./src/.github/actions/install_wheel
with:
packages: "openvino_tokenizers[transformers];openvino_genai[testing]"
packages: "openvino;openvino_tokenizers[transformers];openvino_genai[testing]"
requirements_files: "${{ env.SRC_DIR }}/samples/requirements.txt"
local_wheel_dir: ${{ env.INSTALL_DIR }}/wheels

Expand All @@ -510,9 +505,10 @@ jobs:
cp -R ${{ env.LATEST_OV_DIR }}/openvino_js_package node_modules/openvino-node/bin

- name: Test Samples (Python and C++)
run: python -m pytest -vs ${{ env.SRC_DIR }}/${{ matrix.test.cmd }} -m "${{ matrix.test.marker }}"
run: |
source ${{ env.INSTALL_DIR }}/setupvars.sh
python -m pytest -vs ${{ env.SRC_DIR }}/${{ matrix.test.cmd }} -m "${{ matrix.test.marker }}"
env:
DYLD_LIBRARY_PATH: "${{ env.INSTALL_DIR }}/runtime/lib/intel64:${{ env.INSTALL_DIR }}/runtime/3rdparty/tbb/lib:$DYLD_LIBRARY_PATH" # Required for C++ samples
SAMPLES_PY_DIR: "${{ env.INSTALL_DIR }}/samples/python"
SAMPLES_JS_DIR: "${{ env.SRC_DIR }}/samples/js"
SAMPLES_CPP_DIR: "${{ env.INSTALL_DIR }}/samples_bin"
Expand Down Expand Up @@ -559,16 +555,11 @@ jobs:
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: 'pip'

- name: Install OpenVINO wheel
run: |
python3 -m pip install openvino==${{ needs.openvino_download.outputs.ov_version }} ${{ needs.openvino_download.outputs.ov_wheel_source }}
working-directory: ${{ env.INSTALL_DIR }}

- name: Install GenAI wheels
uses: ./src/.github/actions/install_wheel
with:
packages: "openvino_tokenizers[transformers];openvino_genai[testing]"
packages: "openvino;openvino_tokenizers[transformers];openvino_genai[testing]"
requirements_files: "${{ env.SRC_DIR }}/samples/requirements.txt"
local_wheel_dir: ${{ env.INSTALL_DIR }}/wheels

Expand All @@ -579,9 +570,10 @@ jobs:
${{ env.INSTALL_DIR }}/tests/tests_continuous_batching

- name: Test C++ Tools
run: python -m pytest -vs ${{ env.SRC_DIR }}/tests/python_tests/samples/test_continuous_batching_tools.py -m "samples"
run: |
source ${{ env.INSTALL_DIR }}/setupvars.sh
python -m pytest -vs ${{ env.SRC_DIR }}/tests/python_tests/samples/test_continuous_batching_tools.py -m "samples"
env:
DYLD_LIBRARY_PATH: "${{ env.INSTALL_DIR }}/runtime/lib/intel64:${{ env.INSTALL_DIR }}/runtime/3rdparty/tbb/lib:$DYLD_LIBRARY_PATH" # Required for C++ samples
SAMPLES_CPP_DIR: "${{ env.INSTALL_DIR }}/samples_bin"

genai_nodejs_tests:
Expand Down
Loading