Skip to content

ci: Add automated testing workflow via GitHub Actions - #11

Open
lucumango wants to merge 5 commits into
mwcore-devfrom
ci/add-github-actions
Open

ci: Add automated testing workflow via GitHub Actions#11
lucumango wants to merge 5 commits into
mwcore-devfrom
ci/add-github-actions

Conversation

@lucumango

Copy link
Copy Markdown
Contributor

Description

We need to enforce Continuous Integration to prevent broken code from being merged into mwcore-dev.

Proposed Changes

  1. Create a GitHub Actions workflow (.github/workflows/ci.yml).
  2. The workflow will use astral-sh/setup-uv to bootstrap the environment rapidly.
  3. Automatically run pytest on every pull request to ensure components like the 3D Tracking mathematical core work across different OS environments (Ubuntu and Mac).

Resolves #10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 uv and runs pytest on Ubuntu + macOS for Python 3.10/3.11.
  • Updated TestRawBinIntegration to centralize the sample file path and skip tests when sample.bin is 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 thread .github/workflows/ci.yml
Comment on lines +40 to +41
uv sync --extra cpu --frozen
uv pip install pytest
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.

ci: Add automated testing workflow via GitHub Actions

2 participants