ci: add GitHub Actions workflow (ruff + tests + 100% coverage) - #85
Merged
Conversation
… 100% coverage) Two parallel jobs: - ruff: zero-violation lint gate on every PR - test: unit/contract tests for fast feedback, then integration tests with full 100% coverage enforcement (constitution Principle II) Triggers on pull_request to main and push to main.
2 tasks
mohammadp1001
added a commit
that referenced
this pull request
Jul 17, 2026
The CI pipeline added in #85 enforces zero ruff violations, and these six lines exceeded the 100-char limit. Wrapping them keeps the newly merged CI gate green.
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
.github/workflows/ci.ymlwith two parallel jobs that run on every PR tomainand every push tomain.ruffjob: installs ruff and runspython -m ruff check alphoryn/ tests/— zero violations required (constitution Principle II).testjob:--no-cov) so a unit failure surfaces immediately without waiting for integration tests.pytest -q) which hits all three test directories and enforces--cov-fail-under=100viapyproject.toml. No real GCP or Alpaca credentials needed; all external calls are stubbed.Test plan
ruffjob failstestjob fails