Repository navigation
Bound recall synthesis evidence with YAML settings #301
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: | |
| pull_request: | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| env: | |
| SHELLBRAIN_HOME: ${{ github.workspace }}/.shellbrain-home-test | |
| SHELLBRAIN_PROTECTED_LIVE_DSN: postgresql+psycopg://live_user:live_password@127.0.0.1:5432/shellbrain | |
| HF_HOME: ${{ github.workspace }}/.cache/huggingface | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| cache: "pip" | |
| - name: Cache embedding model downloads | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ${{ github.workspace }}/.cache/huggingface | |
| key: ${{ runner.os }}-onnx-${{ hashFiles('pyproject.toml', 'app/infrastructure/embeddings/local_provider.py') }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Run tests | |
| run: ./scripts/run_tests | |
| - name: Add visualization report to summary | |
| if: always() | |
| run: | | |
| REPORT="tests/visualization/artifacts/tests_status.md" | |
| if [ -f "$REPORT" ]; then | |
| cat "$REPORT" >> "$GITHUB_STEP_SUMMARY" | |
| else | |
| echo "Visualization report not found: $REPORT" >> "$GITHUB_STEP_SUMMARY" | |
| fi | |
| packaging-smoke: | |
| runs-on: macos-latest | |
| env: | |
| SHELLBRAIN_HOME: ${{ github.workspace }}/.shellbrain-home | |
| HF_HOME: ${{ github.workspace }}/.cache/huggingface | |
| PIPX_HOME: ${{ github.workspace }}/.pipx | |
| PIPX_BIN_DIR: ${{ github.workspace }}/.pipx/bin | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| cache: "pip" | |
| - name: Install packaging tooling | |
| run: | | |
| python -m pip install --upgrade pip pipx | |
| - name: Smoke test pipx install | |
| run: | | |
| python -m pipx install . | |
| "$PIPX_BIN_DIR/shellbrain" --help | |
| "$PIPX_BIN_DIR/shellbrain" recall --help | |
| "$PIPX_BIN_DIR/_shellbrain-bootstrap" --help | |
| - name: Run packaging smoke tests | |
| run: | | |
| python -m pip install pytest 'psycopg[binary]>=3.1,<4.0' | |
| python -m pytest -q tests/config/test_packaging_smoke.py |