32 lines
846 B
YAML
32 lines
846 B
YAML
name: Jyotish Skill Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
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: '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
|
|
npm ci --prefix jyotish-app
|
|
- name: Run pytest suite
|
|
run: python -m pytest -q
|
|
- name: Run legacy runner
|
|
run: python tests/run_all.py
|
|
- name: Build frontend
|
|
run: npm run build --prefix jyotish-app
|