Repository navigation
feat(efficacy): run round 5d's arms at K = 15 and pin the CLI per run #60
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: Self-tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| self-tests: | |
| # The owner runs on Windows and the self-tests take both the Windows and the | |
| # POSIX paths, so each is proved on its own runner. | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| defaults: | |
| run: | |
| shell: bash | |
| env: | |
| BENCHMARK_TEMPLATES: ${{ github.workspace }}/solid-ai-templates | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| path: solid-ai-benchmark | |
| # The benchmark carries no templates, so every self-test names a clone of | |
| # them. A self-test makes no model call, so it needs no secret. | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: solid-ai-dev/solid-ai-templates | |
| path: solid-ai-templates | |
| # The arms are built from registered tags, such as the baseline's | |
| # v2.90.0, so the clone needs its full history and tags. | |
| fetch-depth: 0 | |
| # The interpreter every scored trial runs under. | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| # The self-tests commit in scratch workspaces, which needs an identity. | |
| - name: Configure git | |
| run: | | |
| git config --global user.name "CI" | |
| git config --global user.email "ci@example.invalid" | |
| # The self-tests build a trial's command line, which resolves the agent CLIs | |
| # on PATH, but never launch one. Stubs that refuse to run stand in for them, | |
| # so no model can be called. | |
| - name: Put stub agent CLIs on PATH | |
| run: | | |
| stubs="$RUNNER_TEMP/stub-cli" | |
| mkdir -p "$stubs" | |
| for cli in claude codex; do | |
| printf '#!/bin/sh\necho "%s is a CI stub" >&2\nexit 1\n' "$cli" \ | |
| > "$stubs/$cli" | |
| chmod +x "$stubs/$cli" | |
| printf '@echo %s is a CI stub 1>&2\r\n@exit /b 1\r\n' "$cli" \ | |
| > "$stubs/$cli.cmd" | |
| done | |
| echo "$stubs" >> "$GITHUB_PATH" | |
| - name: Install pyflakes | |
| run: python -m pip install --disable-pip-version-check pyflakes | |
| - name: Run every self-test | |
| working-directory: solid-ai-benchmark | |
| run: | | |
| set -e | |
| for module in harness generate_arm score judge report archive reuse \ | |
| security control/control; do | |
| echo "::group::$module" | |
| python "tests/efficacy/$module.py" --self-test | |
| echo "::endgroup::" | |
| done | |
| - name: Pyflakes | |
| working-directory: solid-ai-benchmark | |
| run: python -m pyflakes tests |