ci: add GitHub Actions workflow with lint/compile/smoke matrix#33
Open
rohithreddy66666 wants to merge 1 commit into
Open
ci: add GitHub Actions workflow with lint/compile/smoke matrix#33rohithreddy66666 wants to merge 1 commit into
rohithreddy66666 wants to merge 1 commit into
Conversation
Adds a lightweight CI pipeline that runs on every push to main and every pull request. Each Python version (3.9-3.13) on Ubuntu runs: - ruff check on the E9/F63/F7 rule sets (syntax + logic errors) - python -m compileall for per-version syntax coverage - import sochdb smoke test to guard against module-level breakage The full pytest suite is intentionally deferred: the tests exercise the embedded FFI path, which needs the pre-built Rust libraries from the sochdb/sochdb release page. Wiring that up is left to a follow-up PR. Also adds: - ruff>=0.5 to the [dev] extras so contributors run the same linter - CI status badge in README.md linking to the workflow - CHANGELOG entry under [Unreleased]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a lightweight CI workflow that runs on every push/PR to
main. Each matrix cell (Python 3.9–3.13 on Ubuntu) runs:ruff checkon theE9/F63/F7rule sets — catches syntax + logic errors.python -m compileall— per-version syntax coverage across the source tree.import sochdbsmoke test — guards against module-level breakage.Total wall-clock per cell is well under a minute.
Why not the full pytest suite?
The tests exercise the embedded FFI path, which requires the pre-built Rust libraries from the
sochdb/sochdbrelease page (same onesrelease.ymldownloads). Wiring that up is left to a follow-up PR so this one stays reviewable.Also included
ruff>=0.5added to[project.optional-dependencies].devsopip install -e ".[dev]"gives contributors the same linter CI runs.README.md.CHANGELOG.mdentry under[Unreleased].Verification
ruff check --select E9,F63,F7 src/ tests/passes.python -m compileall src/passes on Python 3.9 / 3.11 / 3.13.python -c "import sochdb; print(sochdb.__version__)"passes.Follow-ups
mypy+black --checkto the matrix once the codebase is fully clean.