Skip to content

Commit

Permalink
Update CI python version
Browse files Browse the repository at this point in the history
Because python 3.6 has reached EOL and was dropped from the
ubuntu-latest image (22.04), the CI will fail when setting up the
environment.
See #117

This updates the python version in the CI matrix to use the oldest
supported minor python verion.
The torch version is also updated to match the available build on PyPI.
Testing on oldest torch 2.x is also added.
  • Loading branch information
leejuyuu authored and kmkurn committed Jun 6, 2024
1 parent c885fba commit 481a801
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.6", "3.7"]
pytorch-version: ["1.2"]
python-version: ["3.8"]
pytorch-version: ["1.4", "2.0"]

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# compatible with yours. If so, install PyTorch with the correct CUDA version
# as instructed on https://pytorch.org/get-started/locally/
torch
pytest==3.2.5
pytest-cov==2.5.1
pytest>=8,<9
pytest-cov>=2,<3

0 comments on commit 481a801

Please sign in to comment.