name: CI on: push: branches: [main] pull_request: branches: [main] jobs: test: runs-on: ubuntu-latest strategy: fail-fast: false matrix: python-version: ["3.10", "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 cache-dependency-path: requirements.txt - name: Install system dependencies run: | sudo apt-get update sudo apt-get install -y poppler-utils tesseract-ocr tesseract-ocr-por - name: Install Python dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt - name: Run pytest run: pytest tests/ -v --tb=short - name: Smoke test agent contract run: | python3 scripts/agent_io.py validate \ --agent echo \ --input tests/fixtures/agent_io/echo_valid.json