# CI for the GitHub mirror (create the mirror per RUNBOOK.md; this workflow # activates the moment the repo exists). Runs the offline test suite and the # curated-dataset schema validation on every push -- the cheap failures that # should never reach the production Space. The full retrieval eval needs the # ONNX models and LFS embeddings, so it stays a manual/scheduled job. name: tests on: push: branches: [main] pull_request: workflow_dispatch: jobs: offline-tests: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: lfs: false # tests are offline; embeddings not needed - uses: actions/setup-python@v5 with: python-version: "3.12" # The pinned set the Space builds with: the suite imports numpy, # onnxruntime, huggingface_hub and tokenizers at collection time # (test_embed, test_calllog), so a shorter list errors 25 tests before # they run. No model is downloaded by any test (2026-09-21 audit). - name: Install the pinned dependencies (no model downloads) run: pip install -r requirements.txt - name: Offline test suite run: python -m unittest discover -s tests -v