name: check agents on: [push, pull_request] jobs: check: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Check every agent folder (///) run: | # Feature folder names have spaces, so pass the paths NUL-separated. find sub-agents individual-agents -mindepth 3 -maxdepth 3 -name agent.yaml -print0 \ | xargs -0 -n1 dirname -z | sort -z \ | xargs -0 python3 scripts/check_agents.py --runtime-image cruciblecoredevacr.azurecr.io/kab/agent-runtime-adk:0.35.7 - name: Dry-run the Discovery orchestrator's code (no model, no MCP server) working-directory: "sub-agents/ALZ-F01: Discovery Workflow Agent" run: | python3 -m pip install --quiet jsonschema==4.23.0 python3 scripts/dry_run.py cp1-alz-discovery-orchestrator-agent "$(mktemp -d)" - name: Test the hyperscaler MCP servers against simulated clouds run: | python3 -m pip install --quiet -r mcp-servers/aws-discovery/requirements.txt -c mcp-servers/aws-discovery/constraints.txt python3 -m pip install --quiet google-auth==2.62.0 requests==2.32.5 moto[all]==5.2.5 pytest pytest-asyncio python3 scripts/test_mcp_servers.py - name: Every Feature's workflow export matches its agents' contracts run: | find sub-agents individual-agents -mindepth 3 -maxdepth 3 -path '*/scripts/build_workflow.py' -print0 \ | xargs -0 -n1 python3 git diff --exit-code -- sub-agents individual-agents