Update CI workflow to use uv for testing and packaging; enhance development documentation on dependency management
Some checks failed
构建扩展 / build (push) Failing after 5m10s
构建并部署文档 / deploy (push) Failing after 2m54s

This commit is contained in:
2026-08-19 20:24:35 +08:00
parent 8c037fc8a9
commit 9bb603b532
3 changed files with 7 additions and 9 deletions

View File

@@ -15,20 +15,16 @@ jobs:
- name: 检出代码
uses: actions/checkout@v6
- name: 配置 Python
uses: actions/setup-python@v6
- name: 配置 uv
uses: astral-sh/setup-uv@v7
with:
python-version: "3.12"
cache: pip
- name: 安装测试依赖
run: python -m pip install numpy pytest
- name: 运行测试
run: python -m pytest
run: uv run --frozen pytest
- name: 构建扩展
run: python pack.py
run: uv run --frozen python pack.py
- name: 上传扩展包
uses: actions/upload-artifact@v7