Skip to content

Add GitHub Actions CI#4

Merged
danielpcox merged 6 commits intomainfrom
ci/github-actions
Mar 11, 2026
Merged

Add GitHub Actions CI#4
danielpcox merged 6 commits intomainfrom
ci/github-actions

Conversation

@danielpcox
Copy link
Copy Markdown
Owner

Summary

  • Add CI workflow with test matrix across Python 3.11, 3.12, 3.13 on CPU
  • Add build verification job that checks wheel excludes test files
  • Add pytest-timeout and pytest-xdist to dev dependency group

Test plan

  • CI runs pass on all three Python versions
  • Build job verifies no test files in wheel

🤖 Generated with Claude Code

danielpcox and others added 6 commits March 10, 2026 22:35
- Test on Python 3.11, 3.12, 3.13 (CPU)
- Build verification with wheel content check
- Per-test 60s timeout to catch hangs
- Uses uv for fast dependency resolution

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The [dependency-groups] dev includes jax-mps with a local path source
(../jax-mps) that doesn't exist in CI. Use --no-dev to skip the
dependency group while still installing [project.optional-dependencies]
dev extras (pytest, torch).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove [mps] optional extra, [tool.uv.sources] local path, and jax-mps
from dev dependency group. Platform-specific JAX backends (MPS, CUDA,
TPU) are the user's responsibility, with CPU as the default fallback.

Also reverts the --no-dev CI workaround since the local path source
was the only reason it was needed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Cosine similarity can exceed 1.0 by ~1e-7 due to float32 rounding.
Add tolerance to bound checks.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Triggers on GitHub releases. Builds the package, verifies no test files
in the wheel, then publishes to PyPI via OpenID Connect (no API tokens
needed).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Trusted publisher was configured without an environment name.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@danielpcox danielpcox merged commit a0561d1 into main Mar 11, 2026
4 checks passed
@danielpcox danielpcox deleted the ci/github-actions branch March 11, 2026 06:11
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