Add release quality gate workflow
This commit is contained in:
@@ -31,6 +31,14 @@ jobs:
|
||||
python -m pip install -r requirements.txt -r requirements-dev.txt
|
||||
npm ci --prefix jyotish-app
|
||||
|
||||
- name: Print environment diagnostics
|
||||
run: |
|
||||
python --version
|
||||
node --version
|
||||
npm --version
|
||||
npm --prefix jyotish-app exec -- vite --version
|
||||
test -x jyotish-app/node_modules/.bin/vite
|
||||
|
||||
- name: Run Ruff lint for quality gate files
|
||||
run: ruff check scripts/run_quality_gate.py tests/test_varga_bphs.py tests/test_ashtakavarga_invariants.py tests/test_cli_smoke.py tests/test_yoga_rules_integrity.py
|
||||
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
name: Jyotish Release Quality Gate
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths:
|
||||
- '.github/workflows/release-quality-gate.yml'
|
||||
- 'scripts/run_quality_gate.py'
|
||||
- 'tests/run_frontend_click_smoke.py'
|
||||
- 'tests/run_frontend_runtime_smoke.py'
|
||||
- 'jyotish-app/**'
|
||||
|
||||
jobs:
|
||||
release-quality-gate:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 45
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Set up Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: npm
|
||||
cache-dependency-path: jyotish-app/package-lock.json
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install -r requirements.txt -r requirements-dev.txt
|
||||
python -m pip install playwright
|
||||
python -m playwright install --with-deps chromium
|
||||
npm ci --prefix jyotish-app
|
||||
|
||||
- name: Print environment diagnostics
|
||||
run: |
|
||||
python --version
|
||||
node --version
|
||||
npm --version
|
||||
npm --prefix jyotish-app exec -- vite --version
|
||||
python - <<'PY'
|
||||
from pathlib import Path
|
||||
print("frontend node_modules:", (Path("jyotish-app") / "node_modules").exists())
|
||||
print("vite binary:", (Path("jyotish-app") / "node_modules" / ".bin" / "vite").exists())
|
||||
PY
|
||||
|
||||
- name: Run release quality gate
|
||||
run: python scripts/run_quality_gate.py --profile release --frontend-click-timeout 240
|
||||
@@ -23,6 +23,13 @@ jobs:
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install -r requirements.txt -r requirements-dev.txt
|
||||
npm ci --prefix jyotish-app
|
||||
- name: Print environment diagnostics
|
||||
run: |
|
||||
python --version
|
||||
node --version
|
||||
npm --version
|
||||
npm --prefix jyotish-app exec -- vite --version
|
||||
test -x jyotish-app/node_modules/.bin/vite
|
||||
- name: Run pytest suite
|
||||
run: python -m pytest -q
|
||||
- name: Run legacy runner
|
||||
|
||||
Reference in New Issue
Block a user