Skip to content

Commit

Permalink
CI Downgrade numpy to <2.0 for Mac and Windows (#1871)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminBossan committed Jun 18, 2024
1 parent 717db6e commit 5364351
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ jobs:
python -m pip install --upgrade pip
# cpu version of pytorch
pip install -e .[test]
- name: Downgrade numpy on MacOS and Windows
# TODO: remove numpy downgrade on MacOS & Windows once torch fixes numpy 2.0 issue
shell: bash
if: matrix.os == 'windows-latest' || matrix.os == 'macos-12'
run: |
pip install --force-reinstall -U "numpy<2.0.0"
- name: Test with pytest
run: |
make test

0 comments on commit 5364351

Please sign in to comment.