-
Notifications
You must be signed in to change notification settings - Fork 1
Add GH Actions build workflow for backend #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add GH Actions build workflow for backend #77
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request adds a GitHub Actions CI workflow for backend testing and code quality checks, along with configuration updates to support environment-based settings and comprehensive test coverage improvements.
Key Changes:
- Introduces a complete CI/CD workflow with PostgreSQL service, uv dependency management, pre-commit hooks, and pytest
- Updates
config.pyto conditionally load.envfiles based on CI environment detection - Adds/updates tests for 100% backend coverage, including new tests for main app, OAuth flow, and configuration handling
- Adds mypy type checking to pre-commit hooks
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/build.yml |
New CI workflow with PostgreSQL, Python 3.13, uv, pre-commit, and pytest steps |
backend/app/core/config.py |
Enhanced get_env_file() to detect CI environment and skip .env file requirements |
backend/tests/test_main.py |
New test file for main app health endpoint and metadata |
backend/tests/features/user/test_oauth.py |
New comprehensive tests for OAuth cookie transport functionality |
backend/tests/features/user/test_api.py |
Updated API paths to include /api prefix for auth and user routes |
backend/tests/features/simulation/test_schemas.py |
Updated status values from "new" to "created" and removed AnyUrl usage |
backend/tests/features/simulation/test_api.py |
Updated API paths to include /api prefix for simulation routes |
backend/tests/features/machine/test_api.py |
Updated API paths to include /api prefix for machine routes |
backend/tests/core/test_config.py |
Added CI environment test and type ignore comments for union-attr |
backend/app/scripts/seed.py |
Removed redundant type annotation |
.pre-commit-config.yaml |
Added mypy type checking hook |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Description
Closes #32
This pull request adds a GitHub Actions CI workflow for backend testing and code quality checks, along with configuration updates to support environment-based settings and comprehensive test coverage improvements.
Key Changes:
config.pyto conditionally load.envfiles based on CI environment detectionRequirements
Build Workflow:
Codebase updates
config.pyto support os.env variables and use.envfile as a backupChecklist
Deployment Notes (if any)