docs: allow batch task integration #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Validate Agent Artifacts | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pyyaml | |
| - name: Validate task contracts | |
| run: | | |
| if [ -d ".agent/tasks" ]; then | |
| python .instructions/scripts/validate_agent_task.py .agent/tasks/ | |
| else | |
| echo "No tasks directory found, skipping task validation" | |
| fi | |
| - name: Validate report contracts | |
| run: | | |
| if [ -d ".agent/reports" ]; then | |
| python .instructions/scripts/validate_agent_report.py .agent/reports/ | |
| else | |
| echo "No reports directory found, skipping report validation" | |
| fi | |
| - name: Validate task/report linkage | |
| run: | | |
| python .instructions/scripts/validate_agent_linkage.py |