Initial public release (v0.1.0) #1
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: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| name: Test (Python ${{ matrix.python-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: "pip" | |
| - name: Install package + dev deps | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e ".[dev]" | |
| - name: Configure git for tests | |
| run: | | |
| git config --global user.email "ci@example.com" | |
| git config --global user.name "CI" | |
| git config --global init.defaultBranch main | |
| - name: Lint | |
| run: | | |
| ruff check src tests | |
| ruff format --check src tests | |
| - name: Test | |
| run: pytest -v | |
| smoke-cli: | |
| name: Smoke-test CLI on a real repo | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: "pip" | |
| - name: Install | |
| run: python -m pip install -e . | |
| - name: Configure git | |
| run: | | |
| git config --global user.email "ci@example.com" | |
| git config --global user.name "CI" | |
| - name: list-agents subcommand | |
| run: ai-dev-effectiveness list-agents | |
| - name: analyze (zero-config) on this repo itself | |
| run: | | |
| ai-dev-effectiveness analyze . --format json --out /tmp/report.json | |
| test "$(stat -c%s /tmp/report.json)" -gt 200 | |
| - name: analyze with stub judge | |
| run: | | |
| ai-dev-effectiveness analyze . --judge stub --format json --out /tmp/judge.json | |
| python -c "import json; d = json.load(open('/tmp/judge.json')); assert 'judge_summary' in d" |