Spaces:
Running on Zero
Running on Zero
| PYTHON ?= python3.11 | |
| .PHONY: help test regression space-check parsers preflight preflight-full benchmark space-smoke space-smoke-strict clean | |
| help: | |
| "Targets:" | |
| " test - run the full unittest discover suite" | |
| " regression - run the regression fixture snapshot suite" | |
| " space-check - run the HF Space readiness check" | |
| " parsers - print the parser registry" | |
| " preflight - run test + regression + space-check + parsers" | |
| " preflight-full - preflight + an end-to-end benchmark smoke" | |
| " benchmark - run zsgdp benchmark against tests/regression/fixtures" | |
| " space-smoke - run docs/space_smoke.md smokes (deps-permitting)" | |
| " space-smoke-strict - same, but treat skipped smokes as failures" | |
| " clean - remove __pycache__ and benchmark output" | |
| test: | |
| $(PYTHON) -m unittest discover | |
| regression: | |
| $(PYTHON) -m unittest tests.regression.test_regression -v | |
| space-check: | |
| $(PYTHON) -m zsgdp.cli space-check --root . | |
| parsers: | |
| $(PYTHON) -m zsgdp.cli parsers | |
| preflight: | |
| $(PYTHON) -m zsgdp.cli preflight --root . | |
| preflight-full: | |
| $(PYTHON) -m zsgdp.cli preflight --root . --benchmark | |
| benchmark: | |
| $(PYTHON) -m zsgdp.cli benchmark \ | |
| --input tests/regression/fixtures \ | |
| --output out/preflight_benchmark | |
| space-smoke: | |
| $(PYTHON) -m scripts.run_space_smoke --output out/space_smoke_report.json | |
| space-smoke-strict: | |
| $(PYTHON) -m scripts.run_space_smoke --strict --output out/space_smoke_report.json | |
| clean: | |
| find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true | |
| rm -rf out/preflight_benchmark | |