Skip to content

[ci] add GitHub Actions workflow for testing graph Jacobian #12

[ci] add GitHub Actions workflow for testing graph Jacobian

[ci] add GitHub Actions workflow for testing graph Jacobian #12

name: test-graph-jacobian
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
packages: read
jobs:
pytest:
runs-on: ubuntu-latest
container:
image: pytorch/pytorch:2.10.0-cuda13.0-cudnn9-devel
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