feat: agent-learner v2 Phase 2 — adapter rewrite + bootstrap CLI #128
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: ci | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Run npm wrapper tests | |
| run: | | |
| npm test | |
| npm pack --dry-run | |
| - name: Install uv | |
| run: python -m pip install uv | |
| - name: Sync environment | |
| run: uv sync --extra dev --python ${{ matrix.python-version }} | |
| - name: Run tests | |
| run: uv run --python ${{ matrix.python-version }} --extra dev pytest -q | |
| - name: Run adapter smoke QA | |
| if: matrix.python-version == '3.13' | |
| run: | | |
| uv run --python ${{ matrix.python-version }} --extra dev agent-learner qa-codex-smoke | |
| uv run --python ${{ matrix.python-version }} --extra dev agent-learner qa-claude-smoke | |
| - name: Build distributions | |
| run: uv build | |
| - name: Verify installed wheel smoke | |
| if: matrix.python-version == '3.13' | |
| shell: bash | |
| run: | | |
| wheel_env="$(mktemp -d)/wheel-env" | |
| uv venv "$wheel_env" --python ${{ matrix.python-version }} | |
| uv pip install --python "$wheel_env/bin/python" dist/*.whl | |
| "$wheel_env/bin/agent-learner" --help | |
| "$wheel_env/bin/agent-learner" qa-codex-smoke | |
| "$wheel_env/bin/agent-learner" qa-claude-smoke |