AgentEvalTool/.gitea/workflows/ci.yml
sinohqb b451ac9625
Some checks are pending
CI / test (push) Waiting to run
feat(ci-cd): add self-hosted Gitea Actions runner + CI & production CD
- CI image (deploy/ci/Dockerfile) with warm deps, no GitHub/Docker Hub dependency
- act_runner deployment templates (compose/config/.env) for Gitea host 47.111.21.147
- Rewrite ci.yml: manual git clone (GITHUB_TOKEN), runs-on agenteval-ci, reuse ci-check.sh
- Add cd-production.yml: tag v*/dispatch trigger, test gate + version gate + ssh deploy
  via scripts/deploy-volcengine-102.sh (unchanged)
- t480 stays manual (internal network, unreachable from Gitea host)
2026-08-12 15:02:29 +08:00

36 lines
1.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: CI
on:
push:
branches: [main]
pull_request:
env:
PIP_INDEX_URL: https://mirrors.aliyun.com/pypi/simple/
PIP_TRUSTED_HOST: mirrors.aliyun.com
NPM_CONFIG_REGISTRY: https://registry.npmmirror.com
jobs:
test:
runs-on: agenteval-ci
steps:
# 不用 actions/checkout依赖 GitHub国内不可达。手动 clone
# secrets.GITHUB_TOKEN 由 Gitea 自动注入,仅对本仓库有效的临时 token。
- name: Checkout (manual git clone, no actions/checkout)
shell: bash
run: |
set -euo pipefail
git clone "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@git.solahqb22.cn/${{ github.repository }}.git" .
git checkout --detach "$GITHUB_SHA"
git --no-pager log -1 --oneline
- name: Install backend deps
run: pip install --no-cache-dir -e ".[dev]"
- name: Install frontend deps
working-directory: frontend/web
run: npm ci --no-audit --no-fund
# 唯一检查入口:版本一致性 → ruff → pytest → tscnode_modules 已装,不会跳过)
- name: CI checks (version / ruff / pytest / tsc)
run: scripts/ci-check.sh