# qihuaiflow minimal CI (Gitea Actions) # # NOTE: This workflow is DORMANT until a Gitea act_runner is registered with # this repo. The active gate today is the host-side pre-push hook # (scripts/git-hooks/pre-push) + scripts/ci_gate.py, because our deployment # model keeps the app running in a long-lived `qihu-aiflow` container on the # docker host rather than building it fresh in CI. # # To activate later: # 1. Install act_runner on the docker host (sharing the docker socket). # 2. Register it against this repo with label `ubuntu-latest`. # 3. The runner can then `docker exec qihu-aiflow ...` to reach the app. # # Until then, the pre-push hook already blocks broken pushes. name: CI on: push: branches: [main] pull_request: jobs: gate: runs-on: ubuntu-latest steps: - name: Backend pytest run: docker exec qihu-aiflow bash -c 'cd /app/backend/python && .venv/bin/python -m pytest -c pytest.ini -q' - name: Frontend vitest run: docker exec qihu-aiflow bash -c 'cd /app/frontend && npx vitest run --reporter=dot'