name: ci on: [push] jobs: test: runs-on: host steps: - name: install python # CHV 测试要的非标准库:py3-yaml(test_chv_gaps / # test_chv_gitea_sync / test_chv_v3_fixes 的 import yaml)、 # py3-pillow(阶段 4 diff_shot 逐像素裁剪走 PIL)、 # procps(阶段 5 ExecdKillGroupTest 用 ps --ppid 找组内 # 子进程,Alpine 自带 busybox ps 不支持 --ppid)。 run: apk add --no-cache python3 py3-pip py3-yaml py3-pillow procps ca-certificates git curl github-cli tar 2>&1 | tail -3; python3 --version; git --version - name: clone repo run: | rm -rf src git clone https://gitea.tose.top/admin/codex-app-server.git src cd src && git fetch origin "${{ gitea.ref }}" && git checkout FETCH_HEAD echo "pushed ref: ${{ gitea.ref }}" git rev-parse HEAD && git log --oneline -1 - name: host tests run: cd src && python3 -m unittest discover -s tests -v - name: cloud tests run: cd src && python3 -m unittest discover -s cloud/tests -v - name: deploy tests run: cd src && python3 -m unittest discover -s deploy/tests -v