Bump minimum Python version to 3.10 #1818
Workflow file for this run
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | name: Unit-tests for Conda install | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| env: | |
| CHANNEL: "nightly" | |
| jobs: | |
| tests: | |
| strategy: | |
| matrix: | |
| python_version: ["3.10", "3.11", "3.12"] | |
| fail-fast: false | |
| uses: pytorch/test-infra/.github/workflows/linux_job.yml@main | |
| with: | |
| runner: linux.12xlarge | |
| repository: pytorch/captum | |
| script: | | |
| # Set up Environment Variables | |
| export PYTHON_VERSION="${{ matrix.python_version }}" | |
| # Create Conda Env | |
| conda create -yp ci_env python="${PYTHON_VERSION}" | |
| conda activate /pytorch/captum/ci_env | |
| ./scripts/install_via_conda.sh | |
| # Run Tests | |
| python3 -m pytest -ra --cov=. --cov-report term-missing |