Skip to content

Commit bd49a46

Browse files
Tests: WA numpy 2 compat issue for torch<2.3
1 parent 39400a6 commit bd49a46

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,11 @@ jobs:
136136
pip install -e ".[test]"
137137
pip install pytest-cov
138138
139+
# We need to downgrade to numpy<2 for torch<2.3 compatibility.
140+
- name: Downgrade NumPy
141+
if: startsWith(matrix.torch_version, '2.2.')
142+
run: pip install "numpy<2"
143+
139144
- name: Show installed packages
140145
run: pip list
141146

@@ -239,6 +244,11 @@ jobs:
239244
pip install -e ".[test]"
240245
pip install pytest-cov
241246
247+
# We need to downgrade to numpy<2 for torch<2.3 compatibility.
248+
- name: Downgrade NumPy
249+
if: startsWith(matrix.torch_version, '2.2.')
250+
run: pip install "numpy<2"
251+
242252
- name: Show installed packages
243253
run: pip list
244254

0 commit comments

Comments
 (0)