Skip to content

Commit

Permalink
automatically infer torch version for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
janfb committed Aug 26, 2024
1 parent ac02010 commit 3e9e71a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
fail-fast: false
matrix:
python-version: ['3.9', '3.12']
torch-version: ['1.13']

steps:
- name: Checkout
Expand All @@ -40,15 +39,14 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ matrix.torch-version }}$
key: ${{ runner.os }}-pip-${{ matrix.python-version }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python-version }}-
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install torch==${{ matrix.torch-version }} --extra-index-url https://download.pytorch.org/whl/cpu
pip install -e .[dev]
- name: Run the fast CPU tests with coverage
Expand Down

0 comments on commit 3e9e71a

Please sign in to comment.