From 586e75d39dd05c8cc8ce5cb749474a5f52dd65c2 Mon Sep 17 00:00:00 2001 From: ao gong <41768719+ageorge156@users.noreply.github.com> Date: Thu, 20 Aug 2026 21:35:51 +0800 Subject: [PATCH] fix(ci): publish quant engine lite verification --- .gitea/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..4c9fe42 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + lite: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@524e936cd9e579adf00e308bfdf971aebc7de09e + with: + persist-credentials: false + - name: Gitea 合规校验 + run: | + if git ls-tree -r HEAD | awk '$1==160000' | grep -q .; then echo "HEAD 含 gitlink"; exit 1; fi + if git ls-files .DS_Store | grep -q .; then echo "跟踪 .DS_Store"; exit 1; fi + if git grep -n -I -E 'sk-[A-Za-z0-9]{20,}|AKIA[0-9A-Z]{16}|ghp_[A-Za-z0-9]{36}|xox[baprs]-[A-Za-z0-9-]{10,}' HEAD | grep -q .; then echo "检出疑似凭证"; exit 1; fi + echo "Gitea 合规校验通过" + - name: 架构模块契约测试 + run: python3 tests/governance/test_module_spec.py + - name: Syntax check + run: git ls-files -z '*.py' | xargs -0 python3 -m py_compile