Skip to content

Commit 9f365be

Browse files
vivekmigfacebook-github-bot
authored andcommitted
Add tests for PyTorch 1.10 - 2.1 (#1218)
Summary: Adds tests for missing versions of PyTorch to make sure tests cover all supported PyTorch versions. Pull Request resolved: #1218 Reviewed By: aobo-y Differential Revision: D51823341 Pulled By: vivekmig fbshipit-source-id: 395836ca7683046c99ec2aeaf90c3dd65b1da37b
1 parent 37fe0b1 commit 9f365be

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/test-pip-cpu.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,23 @@ jobs:
1212
tests:
1313
strategy:
1414
matrix:
15-
pytorch_args: ["-v 1.6", "-v 1.7", " -v 1.8", "-v 1.9"]
15+
pytorch_args: ["-v 1.6", "-v 1.7", "-v 1.8", "-v 1.9", "-v 1.10", "-v 1.11", "-v 1.12", "-v 1.13"]
16+
docker_img: ["cimg/python:3.6", "cimg/python:3.7"]
17+
include:
18+
- pytorch_args: "-v 2.0"
19+
docker_img: "cimg/python:3.8"
20+
exclude:
21+
- pytorch_args: "-v 1.11"
22+
docker_img: "cimg/python:3.6"
23+
- pytorch_args: "-v 1.12"
24+
docker_img: "cimg/python:3.6"
25+
- pytorch_args: "-v 1.13"
26+
docker_img: "cimg/python:3.6"
1627
fail-fast: false
1728
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
1829
with:
1930
runner: linux.12xlarge
20-
docker-image: cimg/python:3.6
31+
docker-image: ${{ matrix.docker_img }}
2132
repository: pytorch/captum
2233
script: |
2334
sudo chmod -R 777 .

0 commit comments

Comments
 (0)