Setup new workflow for dev and prod#131
Merged
achyu-dev merged 9 commits intopesu-dev:devfrom Sep 3, 2025
Merged
Conversation
aditeyabaral
requested changes
Aug 28, 2025
aditeyabaral
previously approved these changes
Sep 3, 2025
Contributor
There was a problem hiding this comment.
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.
aditeyabaral
previously approved these changes
Sep 3, 2025
aditeyabaral
approved these changes
Sep 3, 2025
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
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)