Skip to content

Commit f239165

Browse files
committed
switch to pytorch docker runtime
1 parent 6608594 commit f239165

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/test-graph-jacobian.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,28 @@ on:
55
pull_request:
66
workflow_dispatch:
77

8+
permissions:
9+
contents: read
10+
packages: read
11+
812
jobs:
913
pytest:
1014
runs-on: ubuntu-latest
15+
container:
16+
image: ghcr.io/pytorch/pytorch:latest
1117
timeout-minutes: 30
1218
steps:
1319
- name: Checkout
1420
uses: actions/checkout@v4
1521

16-
- name: Set up Python
17-
uses: actions/setup-python@v5
18-
with:
19-
python-version: "3.11"
20-
cache: pip
21-
2222
- name: Install dependencies
2323
run: |
2424
python -m pip install --upgrade pip
25-
python -m pip install "torch>=2.1"
2625
python -m pip install pytest
2726
2827
- name: Run tests
2928
env:
3029
PYTHONPATH: ${{ github.workspace }}
3130
run: |
31+
python -c "import torch; print('torch', torch.__version__)"
3232
python -m pytest -q tests/autograd/test_graph_jacobian.py

0 commit comments

Comments
 (0)