Add machine-readable API and benchmark contract schemas #2
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: Agent Workflow Checks | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| agent-checks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Compile helper scripts | |
| run: python -m py_compile scripts/repo_intake.py scripts/run_checks.py scripts/validate_contracts.py | |
| - name: Generate repository intake report | |
| run: python scripts/repo_intake.py | |
| - name: Run safe local checks | |
| run: python scripts/run_checks.py | |
| - name: Validate contract schemas | |
| run: python scripts/validate_contracts.py | |
| - name: Upload agent reports | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: agent-check-reports | |
| path: docs/reports/ | |
| if-no-files-found: ignore |