π Description
The current CI workflow only validates frontend-related checks and does not execute backend Python tests. This leaves the FastAPI backend unverified during pull requests and deployments, increasing the risk of shipping broken API logic, failing integrations, or regression issues.
Additionally, the project currently lacks a dedicated requirements-dev.txt file for development and testing dependencies such as pytest and httpx, making backend test setup inconsistent across environments.
The CI pipeline should include a separate backend testing job that installs Python dependencies, resolves the existing requirements.txt merge conflict, and runs automated test suites using pytest.
π― Objective
Python test execution into the CI pipeline.
This will:
Catch backend regressions earlier
Improve API stability
Ensure FastAPI endpoints are validated during PR checks
Standardize backend testing dependencies
Improve overall DevOps workflow quality
π οΈ Proposed Solution
Add a second backend job inside test.yml
Configure Python environment setup in GitHub Actions
Resolve existing requirements.txt dependency conflicts
Add a dedicated requirements-dev.txt
Install:
pytest
httpx
Execute backend tests automatically using pytest
π Features to Include
Python backend CI job
Automated FastAPI endpoint testing
Development dependency management
Separate backend workflow validation
Clear CI logs for backend test failures
π Alternatives Considered
Running backend tests manually before deployment
Combining frontend and backend jobs into a single workflow step
Using production dependencies for testing
These approaches reduce maintainability and increase deployment risk.
π§ͺ Acceptance Criteria
π· Screenshots / References (if any)
N/A
π’ Contribution Guidelines
- Comment "assign me" to work on this issue
- Wait for assignment before starting
- Follow project coding standards
- Submit a clean PR with description
π Description
The current CI workflow only validates frontend-related checks and does not execute backend Python tests. This leaves the FastAPI backend unverified during pull requests and deployments, increasing the risk of shipping broken API logic, failing integrations, or regression issues.
Additionally, the project currently lacks a dedicated requirements-dev.txt file for development and testing dependencies such as pytest and httpx, making backend test setup inconsistent across environments.
The CI pipeline should include a separate backend testing job that installs Python dependencies, resolves the existing requirements.txt merge conflict, and runs automated test suites using pytest.
π― Objective
Python test execution into the CI pipeline.
This will:
Catch backend regressions earlier
Improve API stability
Ensure FastAPI endpoints are validated during PR checks
Standardize backend testing dependencies
Improve overall DevOps workflow quality
π οΈ Proposed Solution
Add a second backend job inside test.yml
Configure Python environment setup in GitHub Actions
Resolve existing requirements.txt dependency conflicts
Add a dedicated requirements-dev.txt
Install:
pytest
httpx
Execute backend tests automatically using pytest
π Features to Include
Python backend CI job
Automated FastAPI endpoint testing
Development dependency management
Separate backend workflow validation
Clear CI logs for backend test failures
π Alternatives Considered
Running backend tests manually before deployment
Combining frontend and backend jobs into a single workflow step
Using production dependencies for testing
These approaches reduce maintainability and increase deployment risk.
π§ͺ Acceptance Criteria
π· Screenshots / References (if any)
N/A
π’ Contribution Guidelines