merge: release mini-code-agent 0.2 #5
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: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| checks: | |
| name: Python checks | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| env: | |
| ANTHROPIC_API_KEY: test-api-key | |
| MODEL_ID: test-model | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v7 | |
| - name: Install uv and Python | |
| uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | |
| with: | |
| version: "0.12.0" | |
| python-version: "3.13" | |
| enable-cache: true | |
| - name: Install locked dependencies | |
| run: uv sync --locked --dev | |
| - name: Check formatting | |
| run: uv run --locked ruff format --check . | |
| - name: Lint | |
| run: uv run --locked ruff check . | |
| - name: Type check | |
| run: uv run --locked mypy | |
| - name: Run tests with coverage | |
| run: uv run --locked coverage run config/manage.py test chat tests.memory | |
| - name: Report coverage | |
| run: uv run --locked coverage report -m |