添加文档自动检查、Actions 工作流与 PR 维护模板
docs / check (push) Failing after 0s

This commit is contained in:
2026-09-16 18:50:57 +00:00
parent cf4430526a
commit e394b2612d
9 changed files with 399 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
name: docs
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
check:
runs-on: [self-hosted, pod]
container:
image: python:3.12-bookworm
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install checker dependencies
run: python3 -m pip install --disable-pip-version-check -r requirements-docs.txt
- name: Test checker
run: python3 -m unittest discover -s tests -v
- name: Check documentation
run: python3 scripts/check_docs.py
- name: Check whitespace
run: git show --format= --check HEAD