Skip to content

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

[ci] add GitHub Actions workflow for testing graph Jacobian

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

name: test-graph-jacobian
on:
push:
pull_request:
workflow_dispatch:
jobs:
pytest:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install "torch>=2.1"
python -m pip install pytest
- name: Run tests
env:
PYTHONPATH: ${{ github.workspace }}
run: |
python -m pytest -q tests/autograd/test_graph_jacobian.py