v3.6.0 #18
Workflow file for this run
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: Benchmarks | |
| on: | |
| release: | |
| types: [published] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| benchmark: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: "3.11" | |
| - name: Install agent-os dependencies | |
| working-directory: agent-governance-python/agent-os | |
| run: pip install --no-cache-dir -e ".[dev]" --quiet # Install local package (Scorecard: pinned via pyproject.toml) | |
| - name: Install agent-sre dependencies | |
| working-directory: agent-governance-python/agent-sre | |
| run: pip install --no-cache-dir -e ".[dev]" --quiet # Install local package (Scorecard: pinned via pyproject.toml) | |
| - name: Run policy benchmarks | |
| working-directory: agent-governance-python/agent-os | |
| run: python benchmarks/bench_policy.py | tee /tmp/bench_policy.json | |
| - name: Run kernel benchmarks | |
| working-directory: agent-governance-python/agent-os | |
| run: python benchmarks/bench_kernel.py | tee /tmp/bench_kernel.json | |
| - name: Run audit benchmarks | |
| working-directory: agent-governance-python/agent-os | |
| run: python benchmarks/bench_audit.py | tee /tmp/bench_audit.json | |
| - name: Run adapter benchmarks | |
| working-directory: agent-governance-python/agent-os | |
| run: python benchmarks/bench_adapters.py | tee /tmp/bench_adapters.json | |
| - name: Run SRE benchmarks | |
| working-directory: agent-governance-python/agent-sre | |
| run: | | |
| python benchmarks/bench_chaos.py | tee /tmp/bench_chaos.txt | |
| python benchmarks/bench_slo.py | tee /tmp/bench_slo.txt | |
| - name: Upload benchmark results | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: benchmark-results | |
| path: /tmp/bench_* | |
| retention-days: 90 |