ci: 添加 GitHub Actions(Python 3.13 安装依赖后运行 pytest)

This commit is contained in:
2026-09-19 23:14:50 +08:00
parent cac0627a9c
commit e8f075d790
+24
View File
@@ -0,0 +1,24 @@
name: CI
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: python -m pytest -q