-
Notifications
You must be signed in to change notification settings - Fork 20
Setup new workflow for dev and prod #131
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
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 PR introduces a new workflow structure for managing development and production deployments with branch-based deployment automation. The changes streamline the CI/CD pipeline by implementing automatic staging deployments on dev branch pushes and manual production deployments with proper access controls.
- Implements automatic dev branch deployment to staging environment
- Adds manual production deployment workflow with user access controls and dev-to-main branch synchronization
- Updates existing workflows to exclude main/dev branches from certain checks and modernizes action versions
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/source.yaml |
Removes dev→main PR allowance, enforcing fork-only contributions to dev branch |
.github/workflows/pre-commit.yaml |
Excludes main/dev from triggers, updates actions, and modernizes dependency installation |
.github/workflows/lint.yaml |
Excludes main/dev from triggers and updates action versions |
.github/workflows/docker.yaml |
Excludes main/dev from triggers and updates checkout action |
.github/workflows/deploy-staging.yaml |
New workflow for automatic staging deployment on dev branch pushes |
.github/workflows/deploy-prod.yaml |
Complete rewrite for manual production deployment with branch sync and access controls |
Comments suppressed due to low confidence (1)
.github/workflows/pre-commit.yaml:1
- The environment variable
TEST_BRANCH_SHORT_CODEis being removed but there's no indication in the PR that this secret is no longer needed. If this variable is still used by tests or other parts of the codebase, removing it could cause failures.
name: Pre-Commit Checks
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
📌 Description
Please provide a concise summary of the changes:
This PR adds a new workflow approach for handling dev and prod deployments
🧱 Type of Change
requirements.txt,pyproject.toml🧪 How Has This Been Tested?
tests/unit/)tests/functional/)tests/integration/)✅ Checklist
scripts/run_tests.py)pre-commit run --all-files).envvars updated (if applicable)scripts/benchmark_auth.py)🛠️ Affected API Behaviour
app/app.py– Modified/authenticateroute logicapp/pesu.py– Updated scraping or authentication handling🧩 Models
app/models/request.py– Input validation or request schema changesapp/models/response.py– Authentication response formattingapp/models/profile.py– Profile extraction logic🐳 DevOps & Config
Dockerfile– Changes to base image or build process.github/workflows/*.yaml– CI/CD pipeline or deployment updatespyproject.toml/requirements.txt– Dependency version changes.pre-commit-config.yaml– Linting or formatting hook changes📊 Benchmarks & Analysis
scripts/benchmark_auth.py– Performance or latency measurement changesscripts/analyze_benchmark.py– Benchmark result analysis changesscripts/run_tests.py– Custom test runner logic or behavior updates📸 Screenshots / API Demos (if applicable)
🧠 Additional Notes (if applicable)