/ .github / workflows / agno.yaml
agno.yaml
 1  name: Agno CI
 2  
 3  on:
 4    push:
 5      paths:
 6        - .github/workflows/agno.yaml
 7        - agno/**
 8      branches:
 9        - main
10    pull_request:
11      paths:
12        - .github/workflows/agno.yaml
13        - agno/**
14  
15  permissions:
16    contents: read
17  
18  jobs:
19    check:
20      name: Format & Type Check
21      runs-on: ubuntu-latest
22  
23      defaults:
24        run:
25          working-directory: agno/agent
26  
27      steps:
28        - name: Checkout repository
29          uses: actions/checkout@v4
30  
31        - name: Install uv
32          run: |
33            curl -LsSf https://astral.sh/uv/install.sh | sh
34            echo "$HOME/.cargo/bin" >> $GITHUB_PATH  # Make uv available
35  
36        - name: Check format
37          run: uv run ruff format --check
38  
39        - name: Check lint
40          run: uv run ruff check
41  
42        - name: Check types
43          run: uv run pyright
44  
45    build:
46      name: Build
47      runs-on: ubuntu-latest
48      defaults:
49        run:
50          working-directory: agno
51  
52      steps:
53        - name: Checkout repository
54          uses: actions/checkout@v4
55  
56        - name: Set up Docker Compose
57          uses: ./.github/actions/setup-compose
58  
59        - name: Build Docker images
60          run: docker compose build