Skip to content
This repository was archived by the owner on Oct 19, 2026. It is now read-only.

Test pi_tools.ts through the real pi; run the tests in CI - #2

Merged
elsehow merged 1 commit into
mainfrom
pi-tools-tests
Oct 14, 2026
Merged

elsehow merged 1 commit into
mainfrom
pi-tools-tests

Conversation

@elsehow

@elsehow elsehow commented Oct 14, 2026

Copy link
Copy Markdown
Member
  • tests/test_pi_tools.py: the pinned pi 0.99.2 loads pi_tools.ts as in production, and a scripted model on a local OpenAI-compatible server makes the tool calls. Covers the research floor, failed research not counting toward it, pieces filtered to wanted keys, the single warning for unknown or missing keys, exactly one final answer, and a no-research spec that offers only submit_forecast (and none of pi's built-ins). No network, no spend. Checked by breaking the floor and the failed-research count in pi_tools.ts: both fail the tests.
  • .github/workflows/test.yml: pytest on Python 3.11 and 3.13, node 22.19 (pi's engines floor), npm ci. In CI the pi tests fail instead of skipping when pi is missing.

🤖 Generated with Claude Code

tests/test_pi_tools.py drives the pinned pi with a scripted model on a
local OpenAI-compatible server: the research floor, failed research not
counting, pieces filtered to wanted keys, the one warning for unknown or
missing keys, one final answer, and a no-research spec offering only
submit_forecast. Skipped without node and pi, except in CI.

.github/workflows/test.yml: pytest on Python 3.11 and 3.13 with node 22.19
(pi's floor) and `npm ci`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@elsehow
elsehow merged commit 74d98ee into main Oct 14, 2026
2 checks passed
@elsehow
elsehow deleted the pi-tools-tests branch October 14, 2026 19:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant