refactor(ingest): optimize event chain queries #52
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: Quality Gate | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| jobs: | |
| quality: | |
| 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: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[dev]" | |
| pip install types-redis types-requests types-reportlab langchain langchain-core pydantic-settings | |
| if [ -f backend/requirements.txt ]; then pip install -r backend/requirements.txt; fi | |
| # QUALITY GATE: All steps must pass. No continue-on-error. | |
| - name: Static Analysis (Ruff) | |
| run: ruff check . | |
| - name: Type Safety (MyPy) | |
| run: mypy . | |
| - name: Tests & Coverage (90% minimum) | |
| env: | |
| PYTHONPATH: backend | |
| run: | | |
| pytest --cov=backend/app --cov=sdk/python --cov=verifier \ | |
| --cov-report=term-missing \ | |
| --cov-fail-under=90 |