From 6ed9a921b5868fac0dd5253ab4e04e53756b05aa Mon Sep 17 00:00:00 2001 From: changwa1 Date: Mon, 25 Nov 2024 16:00:16 +0800 Subject: [PATCH] recover test_ipex.yml Signed-off-by: changwa1 --- .github/workflows/test_ipex.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_ipex.yml b/.github/workflows/test_ipex.yml index fb63326949..59a3161528 100644 --- a/.github/workflows/test_ipex.yml +++ b/.github/workflows/test_ipex.yml @@ -38,6 +38,10 @@ jobs: pip install torch==${{ matrix.torch-version }} torchaudio torchvision --extra-index-url https://download.pytorch.org/whl/cpu pip install .[ipex,tests] transformers[testing]==${{ matrix.transformers-version }} intel_extension_for_pytorch==${{ matrix.torch-version }} + - if: ${{ matrix.torch-version == '2.2.0' }} + name: Downgrade Numpy + run: pip install numpy==1.* + - name: Assert versions run: | python -c "import torch; print(torch.__version__); assert torch.__version__.startswith('${{ matrix.torch-version }}'.replace('.*', ''))" @@ -46,4 +50,4 @@ jobs: - name: Test with Pytest run: | - pytest tests/ipex + pytest tests/ipex \ No newline at end of file