File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Tests
2+
3+ # Runs the node test suite on every push to main and every PR, so a broken
4+ # change can't be tagged for the registry. Publishing lives in publish.yml
5+ # (tags only), so the two never overlap.
6+
7+ on :
8+ push :
9+ branches : [main]
10+ pull_request :
11+ workflow_dispatch :
12+
13+ jobs :
14+ test :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : actions/checkout@v4
18+ - uses : actions/setup-python@v5
19+ with :
20+ python-version : " 3.12"
21+ - name : Install deps (CPU torch + numpy + the mememage core)
22+ run : |
23+ python -m pip install --upgrade pip
24+ # CPU-only torch keeps the install lean; the nodes only need it for
25+ # the IMAGE tensor round-trip, no GPU.
26+ pip install torch --index-url https://download.pytorch.org/whl/cpu
27+ pip install numpy -r requirements.txt
28+ - name : Run the node test suite
29+ run : python test_nodes.py
You can’t perform that action at this time.
0 commit comments