From 9252477fd0de02d80e08b54203ca19fbe318c94e Mon Sep 17 00:00:00 2001 From: Benjamin Bossan Date: Fri, 6 Sep 2024 12:46:58 +0200 Subject: [PATCH] CI: Fix numpy version to below 2.0 (#1059) * Empty commit to trigger CI * Fix numpy version for tests * Empty commit to trigger CI --------- Co-authored-by: BenjaminBossan --- .github/workflows/testing.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 12c2ecb4..4550a0fb 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -34,10 +34,12 @@ jobs: with: python-version: ${{ matrix.python_version }} - name: Install dependencies + # TODO remove numpy version constraint once we no longer support PyTorch < 2.3 run: | python -m pip install --upgrade pip python -m pip install -r requirements-dev.txt python -m pip install -r requirements.txt + python -m pip install --force-reinstall -U "numpy<2.0.0" python -m pip install pytest-pretty python -m pip install torch==${{ matrix.torch_version }} -f https://download.pytorch.org/whl/torch_stable.html python -m pip list