Skip to content

Commit 4767edc

Browse files
Tests: Fix Windows numpy<2 compatibility for torch<2.4.1
1 parent a8a2aa4 commit 4767edc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ jobs:
148148
pip install -e ".[test]"
149149
pip install pytest-cov
150150
151+
# We need to downgrade to numpy<2 for torch<2.4.1 compatibility on Windows
152+
# See: https://github.com/pytorch/pytorch/issues/131668
153+
- name: Downgrade NumPy
154+
if: startsWith(matrix.os, 'windows') && startsWith(matrix.torch_version, '2.3.')
155+
run: pip install "numpy<2"
156+
151157
- name: Show installed packages
152158
run: pip list
153159

0 commit comments

Comments
 (0)