Skip to content

switch to pytorch docker runtime #5

switch to pytorch docker runtime

switch to pytorch docker runtime #5

name: test-graph-jacobian
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
packages: read
jobs:
pytest:
runs-on: ubuntu-latest
container:
image: ghcr.io/pytorch/pytorch:2.10.0-runtime
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest
- name: Run tests
env:
PYTHONPATH: ${{ github.workspace }}
run: |
python -c "import torch; print('torch', torch.__version__)"
python -m pytest -q tests/autograd/test_graph_jacobian.py