Skip to content

chore: add GitHub Actions CI workflow - #2

Merged
KerroKapple merged 1 commit into
mainfrom
chore/add-ci
Jun 15, 2026
Merged

chore: add GitHub Actions CI workflow#2
KerroKapple merged 1 commit into
mainfrom
chore/add-ci

Conversation

@KerroKapple

Copy link
Copy Markdown
Owner

Summary

Adds a GitHub Actions CI workflow (.github/workflows/ci.yml) — the repo previously had no CI.

What it runs

On push / pull_request to main, on ubuntu-latest:

  1. astral-sh/setup-uv@v5 (with cache)
  2. uv sync --frozen — installs CPU dependencies (incl. torch CPU)
  3. uv run ruff check . — lint
  4. uv run pytest — full offline test suite (71 tests)

Why it is CPU/offline safe

All 71 tests run on a CPU runner without datasets, model weights, or a GPU:

  • asset downloads are mocked (urllib.request.urlretrieve)
  • models are built with pretrained=False (no weight downloads)
  • the face detector is faked
  • ONNX engine tests export a tiny in-memory model

Local verification

uv lock --check, uv sync --frozen, uv run ruff check . (All checks passed), and uv run pytest (71 passed) all exit 0 locally.

🤖 Generated with Claude Code

Add a CI workflow that runs on push and pull_request to main.
On ubuntu-latest it installs uv (astral-sh/setup-uv@v5), runs
`uv sync --frozen` to install the CPU dependencies, lints with
`ruff check .`, then runs the full offline `uv run pytest` suite.
All 71 tests are CPU-safe and offline: model downloads are mocked,
models are built with pretrained=False, and the face detector is
faked, so no datasets, weights, or GPU are required.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@KerroKapple
KerroKapple merged commit 6d336af into main Jun 15, 2026
1 check passed
@KerroKapple
KerroKapple deleted the chore/add-ci branch June 15, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant