Skip to content

Commit

Permalink
updating github actions to avoid deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tvercaut committed Sep 27, 2024
1 parent eabbdaf commit 2eb57e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2eb57e0

Please sign in to comment.