Files
Jyotisha/.gitea/workflows/test.yml
T
linmeng f711e77849
Staging Backend Quality Gate (push the reviewed main SHA to staging to auto-deploy) / validate (push) Successful in 20m16s
Staging Backend Quality Gate (push the reviewed main SHA to staging to auto-deploy) / publish-and-deploy (push) Failing after 5m23s
fix: isolate Gitea Python dependencies
Run Python tooling in repository virtual environments so xiaoxin respects the PEP 668 system package boundary.
2026-07-27 21:23:29 +08:00

43 lines
1.3 KiB
YAML

name: Jyotish Skill Tests (manual only)
on:
workflow_dispatch:
jobs:
test:
runs-on: xiaoxin
env:
GITEA_SHA: ${{ gitea.sha }}
steps:
- name: Checkout current Gitea revision
run: |
set -euo pipefail
git init .
git remote remove origin 2>/dev/null || true
git remote add origin https://git.copse.top/root/Jyotisha.git
git fetch --no-tags origin "$GITEA_SHA"
git checkout --detach --force "$GITEA_SHA"
- name: Verify runner toolchain
run: |
set -euo pipefail
python3 --version
node --version
npm --version
docker version
- name: Install dependencies and run tests
env:
NEXT_PUBLIC_SUPABASE_URL: https://ci-placeholder.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY: ci-placeholder
run: |
set -euo pipefail
python3 -m venv .venv
export PATH="$PWD/.venv/bin:$PATH"
python -m pip install --upgrade pip
python -m pip install -r requirements.txt -r requirements-dev.txt
npm ci --prefix frontend
python -m pytest -vv --maxfail=1
python tests/run_all.py
npm test --prefix frontend
npm run lint --prefix frontend
npm run build --prefix frontend