feat: add GitHub Actions workflow for running tests on push and pull request
Some checks failed
运行测试 / test (push) Failing after 16m31s
构建并部署文档 / deploy (push) Failing after 8m38s

This commit is contained in:
2026-08-19 21:38:08 +08:00
parent 9bb603b532
commit ee46d98b93
9 changed files with 755 additions and 260 deletions

26
.github/workflows/test.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: 运行测试
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: 检出代码
uses: actions/checkout@v6
- name: 配置 uv
uses: astral-sh/setup-uv@v7
with:
python-version: "3.11"
- name: 运行测试
run: uv run --frozen pytest