Files
AnyImage/.github/workflows/test.yml
nan ee46d98b93
Some checks failed
运行测试 / test (push) Failing after 16m31s
构建并部署文档 / deploy (push) Failing after 8m38s
feat: add GitHub Actions workflow for running tests on push and pull request
2026-08-19 21:38:08 +08:00

27 lines
413 B
YAML

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