Skip to content

Commit ecbaf15

Browse files
fix(release): install examples dep group in release workflow (#49)
The release workflow's ``Sync deps`` step ran ``uv sync --frozen --all-extras`` without ``--group examples``, so ``openai`` was missing from the venv and the four ``tests/test_examples_smoke.py`` cases failed at module-load time with ``ModuleNotFoundError``. ``ci.yml`` has been doing the right thing since #43; this brings ``release.yml`` in line. Surfaced when the v0.6.0 tag fired the workflow for the first time since #43 landed. The drift sat dormant because release.yml only runs on tag pushes.
1 parent e07dbd5 commit ecbaf15

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@ jobs:
3838
# ``Unknown`` for every OTel-typed expression in
3939
# ``tests/{conformance,unit}/test_observability*.py`` and the
4040
# whole job fails (pyright doesn't honor pytest.importorskip).
41+
# ``--group examples`` mirrors ``ci.yml`` so the
42+
# ``tests/test_examples_smoke.py`` modules can import ``openai``
43+
# at load time (the examples themselves are runnable demos).
4144
- name: Sync deps
42-
run: uv sync --frozen --all-extras
45+
run: uv sync --frozen --all-extras --group examples
4346

4447
# Fail fast if pyproject.toml's version doesn't match the pushed
4548
# tag. Both sides go through `packaging.version.Version` so PEP 440

0 commit comments

Comments
 (0)