Skip to content

Move helper functions for influence tests to be under helpers directory #332

Move helper functions for influence tests to be under helpers directory

Move helper functions for influence tests to be under helpers directory #332

Workflow file for this run

name: Unit-tests for Pip install
on:
pull_request:
push:
branches:
- master
workflow_dispatch:
jobs:
tests:
strategy:
matrix:
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"]
docker_img: ["cimg/python:3.6", "cimg/python:3.7"]
include:
- pytorch_args: "-v 2.0"
docker_img: "cimg/python:3.8"
exclude:
- pytorch_args: "-v 1.11"
docker_img: "cimg/python:3.6"
- pytorch_args: "-v 1.12"
docker_img: "cimg/python:3.6"
- pytorch_args: "-v 1.13"
docker_img: "cimg/python:3.6"
fail-fast: false
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
with:
runner: linux.12xlarge
docker-image: ${{ matrix.docker_img }}
repository: pytorch/captum
script: |
sudo chmod -R 777 .
./scripts/install_via_pip.sh ${{ matrix.pytorch_args }}
# Run Tests
python3 -m pytest -ra --cov=. --cov-report term-missing