Skip to content

Bump minimum Python version to 3.10 #1818

Bump minimum Python version to 3.10

Bump minimum Python version to 3.10 #1818

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 2.3.0", "-v 2.4.0", "-v 2.5.0", "-v 2.6.0", "-v 2.7.0"]
transformers_args: ["-t 4.38.0", "-t 4.39.0", "-t 4.41.0", "-t 4.43.0", "-t 4.45.2"]
docker_img: ["cimg/python:3.10", "cimg/python:3.11", "cimg/python:3.12"]
fail-fast: false
uses: pytorch/test-infra/.github/workflows/linux_job_v2.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 }} ${{ matrix.transformers_args }}
# Run Tests
python3 -m pytest -ra --cov=. --cov-report term-missing