Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CI + Deploy to HuggingFace Space

# GitHub = single source of truth. HF Space = deployed runtime mirror.
# On every push to main: run privacy audit + 260-test suite, then (only
# On every push to main: run privacy audit + 263-test suite, then (only
# if both green) force-push the tree to the HF Space.
#
# Constraints enforced here:
Expand Down Expand Up @@ -52,27 +52,27 @@
echo "✓ No private artefacts tracked. Safe to build."

test:
name: Unit tests (260 hermetic tests)
name: Unit tests (263 hermetic tests)
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v6

- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: pip

- name: Install pinned runtime + test deps
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt

- name: Run pytest
run: python -m pytest tests/ -v --tb=short

deploy-hf:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
name: Deploy to HuggingFace Space
runs-on: ubuntu-latest
needs: [privacy-audit, test]
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# - No mutation of /app at container start.
# - Provider selection is surfaced in the UI; no hidden switching.

FROM python:3.14-slim-bookworm
FROM python:3.12-slim-bookworm

# HF Spaces require uid 1000 to own /home/user/app. Create the user first.
RUN useradd -m -u 1000 user
Expand Down
Loading