tenseleyflow/sway / 5fcb8a5

Browse files

CI fast lane: install [serve] extra for mypy + serve tests

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
5fcb8a55f27c999d5094c20e88756d1ea4f12c76
Parents
7130429
Tree
242daec

1 changed file

StatusFile+-
M .github/workflows/ci.yml 5 2
.github/workflows/ci.ymlmodified
@@ -51,8 +51,11 @@ jobs:
5151
       # the not-yet-published ``dlm`` package. ``uv pip install -e``
5252
       # only installs what's named — matches the README's documented
5353
       # install path and keeps CI honest about what users see.
54
-      - name: Install dev deps (core only — no heavy extras)
55
-        run: uv pip install -e "." --group dev
54
+      - name: Install dev deps (core + [serve] for unit tests + mypy)
55
+        # The serve package's mypy run needs fastapi/uvicorn type info,
56
+        # and the new serve unit tests exercise FastAPI's TestClient.
57
+        # The deps are lightweight (no torch/transformers).
58
+        run: uv pip install -e ".[serve]" --group dev
5659
 
5760
       - name: ruff check
5861
         run: uv run --no-sync ruff check src tests