ci: GitHub Actions 同步文档路径校验与 compileall
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
27
.github/workflows/sdk-ci.yml
vendored
Normal file
27
.github/workflows/sdk-ci.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
name: SDK CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main, master]
|
||||||
|
pull_request:
|
||||||
|
branches: [main, master]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
python-compile:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: "3.11"
|
||||||
|
|
||||||
|
- name: Syntax check (compileall)
|
||||||
|
run: python3 -m compileall sdk/app
|
||||||
|
|
||||||
|
- name: Doc path validation
|
||||||
|
run: bash 开发文档/6、测试/scripts/validate_doc_paths.sh
|
||||||
|
|
||||||
|
- name: Pip install (smoke)
|
||||||
|
run: pip install -q -r sdk/requirements.txt
|
||||||
|
continue-on-error: true
|
||||||
Reference in New Issue
Block a user