ci: 使用独立安装器配置 uv

This commit is contained in:
2026-09-13 08:24:28 +08:00
parent 32d9116c05
commit 270141c145
+8 -2
View File
@@ -19,7 +19,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: python3 -m pip install uv==0.9.24
- name: 安装 uv
run: |
curl -LsSf https://astral.sh/uv/0.9.24/install.sh | sh
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- run: uv sync --frozen
working-directory: backend
- run: uv run python -m compileall -q app
@@ -36,7 +39,10 @@ jobs:
- run: pnpm install --frozen-lockfile && pnpm build
working-directory: server sync/console
- run: git diff --exit-code -- "server sync/sync_server/static"
- run: python3 -m pip install uv==0.9.24
- name: 安装 uv
run: |
curl -LsSf https://astral.sh/uv/0.9.24/install.sh | sh
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- run: uv sync --frozen
working-directory: backend
- run: uv sync --frozen && uv run pytest