From fff067d2409f1290144ef1e29b06315e67f8ef88 Mon Sep 17 00:00:00 2001 From: Yuwen Hu <54161268+Oscilloscope98@users.noreply.github.com> Date: Fri, 17 May 2024 10:11:01 +0800 Subject: [PATCH] Make install ut for cpu exactly the same as what we want for users (#11051) --- .github/actions/llm/setup-llm-env/action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/actions/llm/setup-llm-env/action.yml b/.github/actions/llm/setup-llm-env/action.yml index b5947280..87d9ff20 100644 --- a/.github/actions/llm/setup-llm-env/action.yml +++ b/.github/actions/llm/setup-llm-env/action.yml @@ -38,7 +38,11 @@ runs: pip install --upgrade --pre -i https://pypi.python.org/simple --force-reinstall "python/llm/dist/${whl_name}[xpu_2.1]" --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/cn/ pip install pytest expecttest else - pip install --upgrade --pre -i https://pypi.python.org/simple --force-reinstall "python/llm/dist/${whl_name}[all]" --extra-index-url https://download.pytorch.org/whl/cpu + if [[ ${{ runner.os }} == 'Linux' ]]; then + pip install --upgrade --pre -i https://pypi.python.org/simple --force-reinstall "python/llm/dist/${whl_name}[all]" --extra-index-url https://download.pytorch.org/whl/cpu + elif [[ ${{ runner.os }} == 'Windows' ]]; then + pip install --upgrade --pre -i https://pypi.python.org/simple --force-reinstall "python/llm/dist/${whl_name}[all]" + fi pip install pytest bash python/llm/test/run-llm-install-tests.sh fi