Skip to content

Commit 481a801

Browse files
leejuyuukmkurn
authored andcommitted
Update CI python version
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.
1 parent c885fba commit 481a801

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/run_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
python-version: ["3.6", "3.7"]
20-
pytorch-version: ["1.2"]
19+
python-version: ["3.8"]
20+
pytorch-version: ["1.4", "2.0"]
2121

2222
steps:
2323
- uses: actions/checkout@v2

requirements-test.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# compatible with yours. If so, install PyTorch with the correct CUDA version
33
# as instructed on https://pytorch.org/get-started/locally/
44
torch
5-
pytest==3.2.5
6-
pytest-cov==2.5.1
5+
pytest>=8,<9
6+
pytest-cov>=2,<3

0 commit comments

Comments
 (0)