Skip to content

Bump torch from 2.5.1 to 2.7.0 #41

Bump torch from 2.5.1 to 2.7.0

Bump torch from 2.5.1 to 2.7.0 #41

Workflow file for this run

name: Check Python Versions
on:
workflow_dispatch:
push:
paths:
- '**/requirements.txt' # Dependency file
- '**/setup.py' # Setup script
- '.github/workflows/pyversions.yml' #This file
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"] #, "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Cache pip dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
cd backend
python -m pip install --upgrade pip wheel setuptools
pip install -e . --extra-index-url https://download.pytorch.org/whl/cu128
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi