diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index a8ca7b7..287f61d 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -27,10 +27,13 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install --upgrade numpy pip install torch==${{ matrix.torch-version }} python -m pip install flake8 black if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi + - name: numpy downgrade + if: matrix.torch-version == "1.13.1" + run: | + pip install "numpy<2" - name: Lint check with flake8 run: | # stop the build if there are Python syntax errors or undefined names