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