SIENTIAPDE-1318
Enhance validation script and CI workflow for improved code quality checks - Added support for a --fix option in validate.sh to apply Ruff auto-fixes for formatting and linting. - Updated GitHub Actions workflow to install development and runtime dependencies separately. - Integrated the validation script execution into the CI pipeline to ensure code quality checks are performed automatically.
This commit is contained in:
12
.github/workflows/quality-gate.yml
vendored
12
.github/workflows/quality-gate.yml
vendored
@@ -57,11 +57,19 @@ jobs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pip-
|
||||
|
||||
- name: 📦 Install Dependencies
|
||||
- name: 📦 Install Development Dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements-dev.txt
|
||||
|
||||
- name: 📦 Install Runtime Dependencies
|
||||
run: |
|
||||
pip install -r ${{ steps.prepare-requirements.outputs.PROCESSED_REQUIREMENTS_FILE }}
|
||||
pip install pytest pytest-cov pytest-asyncio
|
||||
|
||||
- name: 🔍 Run Code Validation
|
||||
run: |
|
||||
chmod +x validate.sh
|
||||
./validate.sh
|
||||
|
||||
- name: 🧪 Run Tests with Pytest
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user