-
Notifications
You must be signed in to change notification settings - Fork 6
45 lines (38 loc) · 1.25 KB
/
test-graph-jacobian.yml
File metadata and controls
45 lines (38 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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 system packages
run: |
apt-get update
apt-get install -y --no-install-recommends git
- name: Install dependencies
run: |
python -m pip install --break-system-packages --no-cache-dir --target /tmp/pydeps pytest warp-lang
python -m pip install --break-system-packages --no-cache-dir --target /tmp/pydeps --no-deps --no-build-isolation "git+https://github.com/pypose/pypose.git@bae"
env:
PIP_CACHE_DIR: /tmp/pip-cache
- name: Build C++ extensions
env:
USE_CUDSS: "0"
TORCH_CUDA_ARCH_LIST: "9.0"
run: python -m pip install --break-system-packages --no-build-isolation -v -e .
- name: Run tests
env:
PYTHONPATH: /tmp/pydeps:${{ github.workspace }}
run: |
python -c "import torch; print('torch', torch.__version__)"
python -m pytest -q tests/autograd