mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-10 16:04:04 +00:00
test(training): add reproducible verification target
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
.PHONY: verify-phase6 verify-enet-integration verify-steam-templates verify-supply-chain verify-kind-agones verify-allocated-compose verify-chaos-recovery verify-multiplayer-local verify-multiplayer-load verify-release-gate
|
||||
.PHONY: verify-phase6 verify-enet-integration verify-steam-templates verify-supply-chain verify-kind-agones verify-allocated-compose verify-chaos-recovery verify-multiplayer-local verify-multiplayer-load verify-release-gate verify-training
|
||||
|
||||
verify-multiplayer-local:
|
||||
bash scripts/verify_multiplayer_local.sh
|
||||
@@ -10,6 +10,10 @@ verify-release-gate:
|
||||
@test -n "$(RELEASE_REPORT)" || (echo "RELEASE_REPORT=/path/to/report.json is required" >&2; exit 2)
|
||||
python3 scripts/verify_release_gate.py "$(RELEASE_REPORT)"
|
||||
|
||||
verify-training:
|
||||
@test -x training/.venv/bin/python || (echo "training/.venv/bin/python is required; see TRAINING.md" >&2; exit 2)
|
||||
(cd training && .venv/bin/python -m unittest test_action_space.py test_evaluate.py test_generation5.py)
|
||||
|
||||
verify-phase6:
|
||||
bash scripts/verify_phase6.sh
|
||||
|
||||
|
||||
+10
@@ -66,6 +66,16 @@ with `GODOT_BIN` or `--godot_bin` if yours lives elsewhere.)
|
||||
|
||||
## Run a training session
|
||||
|
||||
Before starting a multi-hour curriculum run, execute the bounded policy and
|
||||
orchestrator checks from the repository root:
|
||||
|
||||
```bash
|
||||
make verify-training
|
||||
```
|
||||
|
||||
The target changes into `training/` deliberately because the test modules
|
||||
import sibling files such as `generation5.py` and `evaluate.py`.
|
||||
|
||||
```bash
|
||||
cd training
|
||||
.venv/bin/python train.py --experiment run01 --timesteps 20000000 --n-parallel 6 --speedup 16
|
||||
|
||||
Reference in New Issue
Block a user