integration: add workflows/agent-build-deploy.yaml
Browse files
workflows/agent-build-deploy.yaml
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Workflow: agent-build-deploy — build, validate, test, stage, deploy agents
|
| 2 |
+
id: agent-build-deploy-cycle
|
| 3 |
+
name: Agent Build & Deployment Cycle
|
| 4 |
+
description: >
|
| 5 |
+
Build all agent definitions → validate registry cross-references →
|
| 6 |
+
run the fast test suite → stage artifact manifest → deploy guarded
|
| 7 |
+
(site + HF datasets via the repo release pipeline).
|
| 8 |
+
trigger: manual/manual.yaml
|
| 9 |
+
stages:
|
| 10 |
+
- id: build
|
| 11 |
+
run: python3 scripts/build_agents.py --json > artifacts/agent-manifest.json
|
| 12 |
+
gate: manifest.status == PASS
|
| 13 |
+
- id: validate
|
| 14 |
+
run: python3 scripts/verify_registries.py
|
| 15 |
+
gate: exit 0
|
| 16 |
+
- id: test
|
| 17 |
+
run: .venv/bin/pytest tests/ -q --ignore=tests/test_72h_closed_loop.py
|
| 18 |
+
gate: exit 0
|
| 19 |
+
- id: stage
|
| 20 |
+
run: python3 scripts/production_check.py
|
| 21 |
+
gate: status == PASS
|
| 22 |
+
- id: deploy
|
| 23 |
+
description: guarded rollout — site pages + datasets; requires human approval
|
| 24 |
+
approval: chamber
|
| 25 |
+
actions:
|
| 26 |
+
- git push origin main
|
| 27 |
+
- upload scripts (kyrexis/pec5d datasets) when HF_TOKEN present
|
| 28 |
+
rollback:
|
| 29 |
+
- git revert HEAD
|
| 30 |
+
- restore previous dataset revisions
|