[AAASM-1560] ✨ (sdk): Add enforcement_mode parameter to init_assembly #57
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: | |
| pull_request: | |
| branches: | |
| - "master" | |
| paths: | |
| - "agent_assembly/**/*.py" | |
| - "test/bench/**/*.py" | |
| - ".github/workflows/benchmarks.yml" | |
| - "pyproject.toml" | |
| - "uv.lock" | |
| jobs: | |
| benchmark: | |
| name: Run performance benchmarks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python | |
| run: uv python install 3.13 | |
| - name: Install dependencies | |
| run: uv sync --group dev | |
| - name: Run benchmark suite | |
| run: | | |
| uv run pytest test/bench/ \ | |
| --benchmark-only \ | |
| --benchmark-disable-gc \ | |
| --benchmark-json=benchmark-results.json \ | |
| -v | |
| - name: Run latency contract tests | |
| run: | | |
| uv run pytest test/bench/test_latency_contracts.py \ | |
| --benchmark-disable \ | |
| -v | |
| - name: Upload benchmark results | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: benchmark-results | |
| path: benchmark-results.json | |
| retention-days: 30 |