Skip to content

Commit 5b2a1c7

Browse files
authored
Feat/add ci cd workflow (#2)
* feat: add GitHub Actions release workflow * fix: correct yaml syntax * chore: migrate dependency installation to uv with caching in CI
1 parent feacb94 commit 5b2a1c7

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@ jobs:
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424

25-
- name: Install dependencies
26-
run: |
27-
python -m pip install --upgrade pip
28-
pip install .[dev] # 安装主包和开发依赖
25+
- name: Install dependencies with uv and cache
26+
uses: astral-sh/setup-uv@v1
27+
with:
28+
# 可选:指定一个 UV 版本,例如 "0.1.0"
29+
version: "latest"
30+
- name: Install the project
31+
run: uv sync --all-groups --dev
32+
2933

3034
- name: Run tests with pytest
3135
run: |

0 commit comments

Comments
 (0)