Skip to content

chore: add CI workflow - #40

Merged
Brian Krabach (bkrabach) merged 1 commit into
mainfrom
chore/add-ci
Aug 28, 2026
Merged

chore: add CI workflow#40
Brian Krabach (bkrabach) merged 1 commit into
mainfrom
chore/add-ci

Conversation

@bkrabach

Copy link
Copy Markdown
Collaborator

Why

Cross-repo audit of the amplifier-module-provider family found 9 of 11 repos have no CI workflow at all. This is one of the 9 (part of work item 57h).

What

Adds .github/workflows/ci.yml: pytest on ubuntu-latest across Python 3.11 and 3.12, 10-minute timeout, uv sync --all-extras --dev + uv run pytest -q -m "not live".

Fix folded in

The inherited amplifier-core behavioral test test_list_models_returns_list makes a real network call to the configured vLLM/OpenAI-compatible endpoint and cannot pass in CI without a reachable server. Overrode it locally in tests/test_behavioral.py to add @pytest.mark.live, deselected via -m "not live" — the same pattern used for provider-openai/provider-gemini elsewhere in this rollout. mount() already defaults VLLM_API_KEY to "EMPTY", so no dummy-credential workaround was needed here.

Verification

Clean-room clone, VLLM_API_KEY unset:

uv sync --dev && uv run pytest -q          -> 1 failed, 292 passed
uv run pytest -q -m "not live"             -> 292 passed, 1 deselected

Merge note

This PR is self-authored / admin-merged at user direction as part of the family-wide CI rollout (work item 57h). The new CI workflow will be verified running green on this PR itself before merge.

This module had no CI at all. Verified clean-room (VLLM_API_KEY
unset -- mount() already defaults to 'EMPTY', so no dummy key is
needed):
uv sync --dev && uv run pytest -q -> 1 failed, 292 passed.

The one failure is the inherited amplifier-core behavioral test
test_list_models_returns_list, which makes a real network call to
the configured endpoint. Marked @pytest.mark.live (overriding the
inherited test locally to add the marker) and deselected via
`-m "not live"`, mirroring the pattern used elsewhere in this
rollout (provider-openai, provider-gemini).

uv run pytest -q -m "not live" -> 292 passed, 1 deselected.

🤖 Generated with [Amplifier](https://github.com/microsoft/amplifier)

Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>
@bkrabach

Copy link
Copy Markdown
Collaborator Author

Self-authored / admin-merging at user direction as part of the family-wide CI rollout (work item 57h).

CI now runs green on this PR: pytest (py3.11) and pytest (py3.12) both pass (292 passed, 1 deselected live test requiring a reachable vLLM server). Merging.

@bkrabach
Brian Krabach (bkrabach) merged commit 37c6337 into main Aug 28, 2026
3 checks passed
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.

2 participants