Add pytest GitHub Action workflow - #14
Merged
Merged
Conversation
Co-authored-by: hzhangxyz <11623447+hzhangxyz@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add GitHub action to run pytest
Add pytest GitHub Action workflow
Dec 22, 2025
hzhangxyz
approved these changes
Dec 22, 2025
hzhangxyz
marked this pull request as ready for review
December 22, 2025 16:06
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds automated pytest execution via GitHub Actions to run tests on every push and pull request. The workflow uses uv for fast dependency management and tests across multiple Python versions using a matrix strategy.
Key changes:
- Added pytest workflow with Python version matrix (3.11, 3.12, 3.13, 3.14)
- Configured
uvfor dependency installation with caching enabled - Set up automated test execution with
fail-fast: falseto test all Python versions
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+9
to
+10
| env: | ||
| PYTHON_LATEST_VERSION: '3.14' |
There was a problem hiding this comment.
The PYTHON_LATEST_VERSION environment variable is defined but never used anywhere in the workflow. Consider removing this unused variable or utilizing it if it was intended for a specific purpose.
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.
Adds automated pytest execution via GitHub Actions on push and pull requests.
Implementation
.github/workflows/pytest.ymlfail-fast: false)uvviaastral-sh/setup-uv@v7with caching enableduv sync --locked --extra devuv run pytestKey differences from reference implementation
working-directoryparameter (root-level project vs. subdirectory structure)pyproject.tomlrequirement (>=3.11)Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.