File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 55 pull_request :
66 workflow_dispatch :
77
8+ permissions :
9+ contents : read
10+ packages : read
11+
812jobs :
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
You can’t perform that action at this time.
0 commit comments