merge: sprint-2-integration to main for project archive #231
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: | |
| lint-and-test: | |
| runs-on: ubuntu-latest | |
| services: | |
| qdrant: | |
| image: qdrant/qdrant:latest | |
| ports: | |
| - 6333:6333 | |
| strategy: | |
| matrix: | |
| python-version: ["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 }} | |
| - name: Install dependencies | |
| run: | | |
| pip install -r requirements-core.txt | |
| pip install ruff pytest pytest-cov mypy types-requests | |
| - name: Lint | |
| run: ruff check . | |
| - name: Type check | |
| run: cd tools && mypy brain/ pipeline/ --ignore-missing-imports | |
| - name: Unit tests | |
| run: pytest tests/ -v --cov=tools --cov-report=xml --cov-report=term-missing -k "not integration" | |
| - name: Integration tests | |
| run: pytest tests/test_integration.py -v || true | |
| env: | |
| QDRANT_URL: http://localhost:6333 | |
| benchmark: | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| runs-on: ubuntu-latest | |
| services: | |
| qdrant: | |
| image: qdrant/qdrant:latest | |
| ports: | |
| - 6333:6333 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| pip install -r requirements-core.txt | |
| pip install pytest ruff mypy types-requests | |
| - name: Run synthetic benchmark regression gate | |
| run: python3 benchmarks/run_benchmark.py --check-thresholds |