48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
name: Jyotish Skill Tests
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with: { python-version: '3.11' }
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '22'
|
|
cache: npm
|
|
cache-dependency-path: frontend/package-lock.json
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
python -m pip install -r requirements.txt -r requirements-dev.txt
|
|
npm ci --prefix frontend
|
|
- name: Print environment diagnostics
|
|
run: |
|
|
python --version
|
|
node --version
|
|
npm --version
|
|
- name: Run pytest suite
|
|
run: |
|
|
mkdir -p artifacts
|
|
python -m pytest -vv --maxfail=1 --junitxml=artifacts/pytest.xml 2>&1 | tee artifacts/pytest.log
|
|
- name: Upload pytest diagnostics
|
|
if: always()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: pytest-diagnostics
|
|
path: artifacts/
|
|
- name: Run legacy runner
|
|
run: python tests/run_all.py
|
|
- name: Validate production web
|
|
env:
|
|
NEXT_PUBLIC_SUPABASE_URL: https://ci-placeholder.supabase.co
|
|
NEXT_PUBLIC_SUPABASE_ANON_KEY: ci-placeholder
|
|
run: |
|
|
npm test --prefix frontend
|
|
npm run lint --prefix frontend
|
|
npm run build --prefix frontend
|