Skip to content

Commit 732dfc1

Browse files
sememtacclaude
andcommitted
Add test-CI: run the node suite on push/PR
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent dfde250 commit 732dfc1

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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

0 commit comments

Comments
 (0)