Skip to content

chore: add CI workflow; ship pyrightconfig.json - #79

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

chore: add CI workflow; ship pyrightconfig.json#79
Brian Krabach (bkrabach) merged 1 commit into
mainfrom
chore/add-ci

Conversation

@bkrabach

Copy link
Copy Markdown
Contributor

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 --extra dev + uv run pytest -q. (This repo uses [project.optional-dependencies] dev, not [dependency-groups], so --extra dev is required — --dev silently installs nothing extra.)

Fixes folded in

  1. Ships a real pyrightconfig.json at repo root, derived from the existing pyrightconfig.example.json (stripped of the machine-local pythonPath). tests/test_test_quality.py::TestQualityGates asserts this file exists with "tests" and "amplifier_module_provider_github_copilot" in its include list — only the .example.json shipped, so both assertions failed.
  2. .gitignore fix: .github/ and pyrightconfig.json were blanket-ignored under a "Local developer configuration" heading (grouped with .vscode/, .claude/, etc.) — almost certainly an oversight, since .github/ holds CI workflows meant to be committed in virtually every GitHub repo, and pyrightconfig.json is exactly the file this repo's own test suite asserts must be committed. Removed those two lines only; the rest of that ignore block (IDE/editor configs) is untouched.

This repo already excludes 12 live-network tests by default via addopts = "-m 'not live'" in pyproject.toml — CI relies on that existing behavior unchanged.

Verification

Clean-room clone:

uv sync --extra dev && uv run pytest -q
-> before fix: 2 failed, 1540 passed, 12 deselected
-> after fix:  1542 passed, 12 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.

…fig.json

This module had no CI at all. Verified clean-room:
uv sync --extra dev && uv run pytest -q -> 2 failed, 1540 passed, 12 deselected.

Both failures were tests/test_test_quality.py asserting
pyrightconfig.json exists at repo root with "tests" and
"amplifier_module_provider_github_copilot" in its "include" list --
only pyrightconfig.example.json shipped. Added the real
pyrightconfig.json (derived from the example, stripped of the
machine-local pythonPath).

.gitignore also blanket-ignored .github/ and pyrightconfig.json under
a "Local developer configuration" heading (grouped with .vscode/,
.claude/, etc.) -- almost certainly an oversight, since .github/
holds CI workflows meant to be committed in virtually every GitHub
repo, and pyrightconfig.json is exactly the file the repo's own test
suite asserts must be committed. Removed both lines; the rest of that
block (IDE/editor configs) is untouched.

This repo already had addopts = "-m 'not live'" in pyproject.toml
excluding 12 live-network tests by default -- CI relies on that
existing behavior, no changes needed there. Note: uv sync --dev does
not work here (this repo uses [project.optional-dependencies] dev,
not [dependency-groups]) -- CI uses uv sync --extra dev.

uv run pytest -q -> 1542 passed, 12 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
Contributor 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 (1542 passed, 12 deselected live tests). Merging.

@bkrabach
Brian Krabach (bkrabach) merged commit 05f640f 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