merge: bring claude/v1.8-ai into main (v1.9.0) #2
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, "claude/**"] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| name: Lint & Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| cache: "pip" | |
| - name: Install dependencies | |
| run: pip install -r requirements.txt | |
| - name: Lint with ruff | |
| run: ruff check app/ tests/ | |
| - name: Run unit and API tests | |
| env: | |
| ANTHROPIC_API_KEY: test_key | |
| run: pytest tests/unit/ tests/api/ -v --tb=short | |
| - name: Run integration tests (sample data) | |
| env: | |
| ANTHROPIC_API_KEY: test_key | |
| run: pytest tests/integration/ -v --tb=short | |
| # Integration tests skip if sample data is absent; always "pass" in CI | |
| continue-on-error: true |