From c138bc81d274456abacbbfc55332a0524b86909a Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 13 Sep 2026 08:24:28 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E4=BD=BF=E7=94=A8=E7=8B=AC=E7=AB=8B?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E5=99=A8=E9=85=8D=E7=BD=AE=20uv?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index f6b0389..12f1a6e 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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