CoolFace
Apppublic

sscorp/ecosystem-intel

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
ci.yml43 linesDownload Raw Back to workflows
1name: CI2 3on:4  push:5    branches: [main]6  pull_request:7 8jobs:9  quality:10    runs-on: ubuntu-latest11    env:12      # CI proves the mock/fail-soft contract. The real-Cognee integration path13      # is gated by backend/smoke_test.py, which needs live keys and a store —14      # it runs locally before ingest, never in CI.15      USE_MOCK: "1"16    steps:17      - uses: actions/checkout@v418 19      - uses: actions/setup-python@v520        with:21          python-version: "3.11"22 23      # cognee is intentionally NOT installed: the app must boot and every24      # contract must hold in mock mode without it (fail-soft design, ADR-0008).25      # Versions pinned to the validated local toolchain.26      - name: Install mock-mode stack27        run: >28          pip install fastapi "uvicorn[standard]" pydantic python-dotenv29          requests httpx pytest pytest-asyncio pytest-cov30          ruff==0.15.20 pylint==4.0.631 32      - name: Ruff format + lint33        run: |34          ruff format --check backend35          ruff check backend36 37      - name: Pylint gate (10.00/10)38        working-directory: backend39        run: pylint --fail-under=10 app smoke_test.py tests40 41      - name: Tests + coverage42        run: pytest --cov=backend/app --cov-report=term-missing43