Some checks failed
CI / test (push) Failing after 2m59s
- 补齐 release-notes-v0.3.md,更新 AGENT.md 里程碑表与 README 至 v0.3 现状 - 新增 scripts/ci-check.sh(版本一致性 + ruff + pytest + tsc) - 新增 .gitea/workflows/ci.yml 与本地 pre-push hook 约定
31 lines
691 B
YAML
31 lines
691 B
YAML
name: CI
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
- name: Install backend deps
|
|
run: pip install -e ".[dev]"
|
|
- name: Version consistency
|
|
run: python scripts/sync_version.py --check
|
|
- name: Lint
|
|
run: ruff check backend/
|
|
- name: Tests
|
|
run: python -m pytest -q
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "20"
|
|
- name: Frontend type check
|
|
run: |
|
|
cd frontend/web
|
|
npm ci
|
|
npx tsc --noEmit
|