feat: publish workphone SDK deployment and API docs
This commit is contained in:
32
.gitea/workflows/sdk-ci.yml
Normal file
32
.gitea/workflows/sdk-ci.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
# Gitea Actions — 需实例开启 Actions 并注册 act_runner
|
||||
# 文档: https://docs.gitea.com/usage/actions/overview
|
||||
name: SDK CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, master]
|
||||
pull_request:
|
||||
branches: [main, master]
|
||||
|
||||
jobs:
|
||||
python-compile:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Python
|
||||
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 开发文档/8、部署/05-测试验收/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