fix(VIOL-0064): raise on ambiguous agent-name folder match #2382
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 Pipeline | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| check: | |
| name: Lint & Type Check | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v7 | |
| - name: Setup Python | |
| uses: ./.github/actions/setup-python | |
| - name: Install go-task | |
| run: sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin | |
| - name: Lint | |
| run: task lint | |
| - name: Format check | |
| run: task format:check | |
| - name: Type check | |
| run: task mypy | |
| changelog: | |
| name: Changelog Entry | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v7 | |
| - name: Check for changelog entry | |
| run: | | |
| if ls .changes/unreleased/*.yaml 1>/dev/null 2>&1; then | |
| echo "Changelog entry found:" | |
| ls .changes/unreleased/*.yaml | |
| else | |
| echo "::error::No changelog entry found. Run 'task changelog:new' to create one." | |
| exit 1 | |
| fi | |
| - name: Check for signed commits | |
| run: | | |
| git log origin/main..HEAD --format="%H %s" | while read hash subject; do | |
| if ! git log -1 --format="%B" "$hash" | grep -q "Signed-off-by:"; then | |
| echo "::error::Commit $hash is missing Signed-off-by. Use 'git commit --signoff'." | |
| exit 1 | |
| fi | |
| done | |
| test: | |
| name: Tests | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: read | |
| needs: check | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v7 | |
| - name: Setup Python | |
| uses: ./.github/actions/setup-python | |
| - name: Run tests | |
| run: uv run pytest | |
| build: | |
| name: Build Package | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: read | |
| needs: test | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v7 | |
| - name: Setup Python | |
| uses: ./.github/actions/setup-python | |
| - name: Build | |
| run: uv build | |
| - name: Verify py.typed marker | |
| run: unzip -l dist/agent_actions-*.whl | grep py.typed | |
| - name: Verify entrypoints | |
| run: | | |
| uv pip install --force-reinstall dist/*.whl | |
| uv run agac --help > /dev/null | |
| uv run agac-lsp --help > /dev/null | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: dist | |
| path: dist/ | |
| retention-days: 7 |