Commit 9c53520
ci(tests): add cross-platform test workflow + fix drift surfaced by it
Enables the same 3-OS x 4-Python CI matrix that attune-rag uses,
gating every PR on ruff + pytest. Enabling CI surfaced four real
issues that had accumulated without test automation:
- engine.py: `Callable` used at line 580 with no import (F821).
Runtime-crashable if _auto_detect_renderer was introspected
before call. Added `from typing import Callable`.
- test_plugin_config.py: 15 dead tests validating a `plugin/`
directory that was never created in this repo (monorepo-
extraction carryover). Deleted.
- test_plugin_references.py: stale assertions expecting 6 MCP
tools (reality: 10) and method-name/tool-name equality (dispatch
intentionally renames 3). Rewrote to verify via the real
dispatch table — the source of truth for MCP routing.
- test_transformers.py: unused `eng` local in
test_auto_without_tty_falls_back_to_plain (F841). Removed.
Also adds a `[dev]` optional-dependencies extra so CI can do
`pip install -e .[dev]` without enumerating test tooling.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 412cedc commit 9c53520
8 files changed
Lines changed: 83 additions & 461 deletions
File tree
- .github/workflows
- src/attune_help
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
35 | 41 | | |
36 | 42 | | |
37 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
0 commit comments