[Enhancement] Add basic CI pipeline (GitHub Actions) and pytest infrastructure#113
Closed
pigeio wants to merge 1 commit intoEAPD-DRB:mainfrom
Closed
[Enhancement] Add basic CI pipeline (GitHub Actions) and pytest infrastructure#113pigeio wants to merge 1 commit intoEAPD-DRB:mainfrom
pigeio wants to merge 1 commit intoEAPD-DRB:mainfrom
Conversation
Collaborator
|
@pigeio This PR is cleaner and narrower, and the simple Flask request-level smoke test here is useful. But I do not want to keep two overlapping CI PRs active in parallel. I’m choosing That said, the request-level test idea in this PR is still valuable. If |
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
What changed: Added a foundational CI/CD pipeline using GitHub Actions ([.github/workflows/python-app.yml]). The workflow installs dependencies, runs
flake8for syntax errors, and executes a newly addedpytestsuite.Why: To automatically verify code integrity on all new Pull Requests and pushes to
main/mac-port. This prevents regressions, catches syntax errors early, and reduces the manual testing burden on maintainers. Includes [pytest.ini] and a basic API test ([tests/test_api_basics.py] to demonstrate the live testing pipeline.Related issues
Validation
Validation:
When this PR is opened, the GitHub Actions tab will automatically boot an Ubuntu runner, install Python 3.10 and
pytest, and executepytest tests/test_api_basics.py. Evidence is visible directly in the "Checks" section below this PR description.Documentation
Scope check
OSeMOSYS/MUIOdependencyEAPD-DRB/MUIOGO:main(not upstream)