ci: Add automated testing workflow via GitHub Actions - #11
Open
lucumango wants to merge 5 commits into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
Adds CI coverage via GitHub Actions to run the Python test suite on PRs/pushes, and adjusts an integration test to be skippable when its external binary fixture is unavailable.
Changes:
- Added a GitHub Actions CI workflow that installs dependencies via
uvand runspyteston Ubuntu + macOS for Python 3.10/3.11. - Updated
TestRawBinIntegrationto centralize the sample file path and skip tests whensample.binis not present.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
tests/test_raw_bin_integration.py |
Makes the raw binary integration tests conditional on presence of tests/data/sample.bin. |
.github/workflows/ci.yml |
Introduces a matrix CI workflow using setup-uv and running pytest. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Comment on lines
+14
to
+16
| FILE_PATH = os.path.join(os.path.dirname(__file__), 'data', 'sample.bin') | ||
|
|
||
| @unittest.skipIf(not os.path.exists(FILE_PATH), "sample.bin not found. Skipping raw data test.") |
Comment on lines
+40
to
+41
| uv sync --extra cpu --frozen | ||
| uv pip install pytest |
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.
Description
We need to enforce Continuous Integration to prevent broken code from being merged into mwcore-dev.
Proposed Changes
.github/workflows/ci.yml).astral-sh/setup-uvto bootstrap the environment rapidly.pyteston every pull request to ensure components like the 3D Tracking mathematical core work across different OS environments (Ubuntu and Mac).Resolves #10