Skip to content

Add GitHub Actions workflow running pytest#9

Closed
FANNG1 wants to merge 1 commit into
mainfrom
add-ci
Closed

Add GitHub Actions workflow running pytest#9
FANNG1 wants to merge 1 commit into
mainfrom
add-ci

Conversation

@FANNG1

@FANNG1 FANNG1 commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Summary

Adds CI: pytest on every PR and on pushes to main, using astral-sh/setup-uv with dependency caching and uv sync --locked.

No model download needed — SCRFD-dependent tests (tests/image/test_detector.py, and the e2e suite from #8 once merged) skip themselves when the InsightFace model pack is absent.

Note: this branch is off main, so the first run covers the current 28 tests; after #8 merges, CI covers all 55 including the pipeline e2e chain.

uv-based setup with dependency caching; SCRFD-dependent tests skip
automatically when the model pack is absent, so CI needs no model
download.
@FANNG1 FANNG1 closed this Jul 6, 2026
FANNG1 pushed a commit that referenced this pull request Jul 6, 2026
Review found test_build_embedding_index_small_table failing in
environments with a pre-existing Ray cluster: Ray's default init joins
it, and the foreign workers cannot deserialize this venv's lance_ray
functions. Two-layer fix:

- local_ray fixture forces a fresh local cluster from this venv
  (clears RAY_ADDRESS, shuts down any existing context).
- The test is marked `ray` and excluded from the default run via
  pyproject addopts; run explicitly with `pytest -m ray`. The
  delete_by_date tests stay in the default suite — compaction is
  best-effort, so they pass even where Ray is unusable.

The CI workflow (cherry-picked from PR #9) runs the default suite as a
blocking step and `-m ray` as a non-blocking one.
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