Update CI workflow to use uv for testing and packaging; enhance development documentation on dependency management
This commit is contained in:
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user