Skip to content

Commit

Permalink
recover test_ipex.yml
Browse files Browse the repository at this point in the history
Signed-off-by: changwa1 <[email protected]>
  • Loading branch information
changwangss committed Nov 25, 2024
1 parent e56a791 commit 6ed9a92
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/test_ipex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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('.*', ''))"
Expand All @@ -46,4 +50,4 @@ jobs:
- name: Test with Pytest
run: |
pytest tests/ipex
pytest tests/ipex

0 comments on commit 6ed9a92

Please sign in to comment.