Feat : ci add dedicated backend test workflow#780
Open
antharya05 wants to merge 2 commits into
Open
Conversation
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
This PR refactors and improves the backend CI workflow structure by introducing a dedicated backend testing workflow with cleaner ownership, better reliability, optimized execution, and improved Python environment consistency.
Main Improvements
Added a dedicated backend workflow:
.github/workflows/backend-tests.ymlSeparated backend responsibilities from the general CI workflow.
Added backend-specific path triggers so backend jobs only run when backend-related files change.
Added:
timeout-minutesfail-fast: falsepython -m pytestpython -m pip install --upgrade pipAdded cleaner workflow structure using:
Removed duplicated backend execution from
ci.yml.Kept workflows intentionally lightweight and maintainable without overengineering.
Why These Changes Matter
During local verification, I encountered an interpreter mismatch issue between:
Switching to:
ensures pytest always runs using the active interpreter environment, improving CI reliability.
The new structure also reduces unnecessary GitHub Actions runs and makes workflow ownership clearer as the repository grows.
Related Issue
Fixes #481
Type of change
Checklist
mainpytest -vand all tests passfeat/fix/docs/test: short descriptionTest evidence