From 2eb57e0e7b074f79f2a1484da9fc1d2cafb44fd0 Mon Sep 17 00:00:00 2001 From: Tom Vercauteren Date: Fri, 27 Sep 2024 09:12:09 +0100 Subject: [PATCH] updating github actions to avoid deprecation warning --- .github/workflows/python-package.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 8626f54..6f0492e 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -19,9 +19,9 @@ jobs: torch-version: "1.13.1" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -30,8 +30,8 @@ jobs: pip install torch==${{ matrix.torch-version }} python -m pip install flake8 black[jupyter] if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi - - name: numpy downgrade - if: startsWith(matrix.torch-version, '1.13.1') + - name: numpy downgrade for pytorch 1.x + if: startsWith(matrix.torch-version, '1.') run: | pip install "numpy<2" - name: Lint check with flake8