SPEC=2 is full spec, SPEC=1 is default (#12910)

* SPEC=1 passes all tests

* just use SPEC, not __debug__
This commit is contained in:
George Hotz
2025-10-25 11:10:43 +08:00
committed by GitHub
parent 456560c1ff
commit 8a941d95a4
12 changed files with 31 additions and 24 deletions
+2 -2
View File
@@ -264,8 +264,8 @@ jobs:
run: python -c "from tinygrad import Device; assert Device.DEFAULT == 'CPU', Device.DEFAULT"
- name: Run unit tests
run: CPU=1 python -m pytest -n=auto test/unit/ --durations=20
- name: Check SPEC=1
run: SPEC=1 python3 test/test_tiny.py
- name: Check SPEC=2
run: SPEC=2 python3 test/test_tiny.py
- name: Run targetted tests on NULL backend
run: NULL=1 python3 -m unittest test.test_multitensor.TestMultiTensor.test_data_parallel_resnet_train_step test/device/test_null.py
# TODO: too slow