Skip to content

CI: make PR runs reliable; fix black gate#15

Merged
Robaina merged 2 commits into
masterfrom
ci/pr-friendly-tests
Jun 19, 2026
Merged

CI: make PR runs reliable; fix black gate#15
Robaina merged 2 commits into
masterfrom
ci/pr-friendly-tests

Conversation

@Robaina

@Robaina Robaina commented Jun 19, 2026

Copy link
Copy Markdown
Owner

Summary

Makes CI green and reliable for incoming PRs. The CI/quality workflow was failing on master (latest run failed in 16s) because black --check . rejects unformatted files anywhere in the repo, and the recently-added mcp/ files weren't formatted — that would fail every PR too.

Changes

  • Fix the black gate: run black . across the repo (formats tests/tests.py + 4 mcp/ files; no behavior change). black --check . now passes.
  • PR triggers: add pull_request: synchronize to ci.yml and tests.yml so the suite re-runs on every push to an open PR (was only opened/reopened, so later commits went untested).
  • Fork-friendly coverage: mark the Codecov upload continue-on-error — fork PRs have no repo secrets, so the upload is rejected; coverage is informational and shouldn't fail a contributor's PR.

Test battery

tests/tests.py is a fixed, deterministic battery of 67 unittest cases driven by the committed tests/fixtures/brenda_sample.json (no network, no large data). Verified passing against a freshly built wheel in a clean venv — the exact CI path (poetry build && pip install dist/*.whl && coverage run -m unittest discover tests).

🤖 Generated with Claude Code

Robaina and others added 2 commits June 19, 2026 19:41
- ci.yml/tests.yml: trigger on pull_request `synchronize` so the suite
  re-runs on every push to an open PR (was only opened/reopened).
- tests.yml: mark the Codecov upload `continue-on-error` — fork PRs have
  no repo secrets, so the upload is rejected; coverage is informational
  and must not fail a contributor's PR.
- Run `black .` across the repo. The `quality` job runs `black --check .`
  over the whole tree; the unformatted mcp/ files (and the expanded
  tests.py) were turning every PR red. Formats tests/tests.py + 4 mcp/
  files; no behavior change.

The 67-test battery in tests/tests.py passes against a freshly built
wheel in a clean venv (the CI path).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Local black (22.12.0) and CI's latest (26.5.1) disagreed on
mcp/examples/enzyme_kinetics_agent.py, so the quality job still failed.
Pin both tools in ci.yml so the style is deterministic across PRs, and
reformat the repo with the pinned black.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Robaina
Robaina merged commit bd03d5f into master Jun 19, 2026
15 checks passed
@Robaina Robaina self-assigned this Jun 19, 2026
@Robaina
Robaina deleted the ci/pr-friendly-tests branch June 19, 2026 18:50
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.

1 participant