ci: set up GitHub Actions workflow and requirements.txt for automated…#54
Merged
Conversation
Closed
11 tasks
There was a problem hiding this comment.
Pull request overview
Sets up initial CI automation for the Philea pipeline by adding a GitHub Actions workflow, introducing a Python requirements.txt, and aligning imports/tests with the scrapers package layout so tests run in CI.
Changes:
- Updated pipeline runner and unit tests to import/patch
scrapers.phileainstead ofscraper.philea. - Added
requirements.txtfor CI dependency installation. - Added a GitHub Actions workflow to lint, compile-check, and run unit tests on pushes/PRs.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/tests/test_pipeline.py |
Updates test imports and mock patch targets to scrapers.philea. |
src/pipelines/run_pipeline.py |
Adjusts sys.path bootstrapping and updates import to scrapers.philea. |
requirements.txt |
Introduces dependency list for CI installs. |
.github/workflows/ci.yml |
Adds CI workflow running flake8, compileall, and unittest discovery. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+7
to
+11
| PIPELINES_DIR = os.path.dirname(os.path.abspath(__file__)) | ||
| SRC_DIR = os.path.dirname(PIPELINES_DIR) | ||
| PROJECT_ROOT = SRC_DIR | ||
| if SRC_DIR not in sys.path: | ||
| sys.path.insert(0, SRC_DIR) |
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.
… testing