Skip to content

Add GitHub Actions CI workflow - #97

Open
daniplatform wants to merge 1 commit into
ParzivalHack:mainfrom
daniplatform:feature/github_actions
Open

daniplatform wants to merge 1 commit into
ParzivalHack:mainfrom
daniplatform:feature/github_actions

Conversation

@daniplatform

Copy link
Copy Markdown
Collaborator

Summary

Adds a GitHub Actions CI workflow (.github/workflows/ci.yml) that runs on every push and pull request:

  • Tests: pytest + a smoke test of the Rust extension, on Python 3.9, 3.10, 3.11 and 3.12
  • Python lint: Ruff and mypy
  • Rust lint: Clippy and a rustfmt check
  • Docker: a smoke test that builds the image

The workflow only gets read access to the repo (permissions: contents: read). If a new commit lands on the same branch, the run already in progress is cancelled.

Also:

  • tracks Cargo.lock so builds are reproducible
  • adds entries to .dockerignore so native extension builds (*.pyd/*.so/*.dylib), tool caches and frontend dependencies stay out of the Docker build context

Test plan

  • CI workflow runs green on this PR

Runs pytest + Rust extension smoke test across Python 3.9-3.12, Ruff/mypy
lint, Clippy/rustfmt checks, and a Docker build smoke test. Adds
permissions and concurrency guards, and tracks Cargo.lock for
reproducible builds.

This branch has not been deployed

No deployments
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