From c96c36916172c8bb9669ca693022302467e1c592 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E7=99=BD=E5=8F=94?= <11794527+absfan@user.noreply.gitee.com> Date: Mon, 2 Nov 2026 15:16:02 +0800 Subject: [PATCH] ci: use local Gitea checkout --- .gitea/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index bbf72c6..60975be 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -14,7 +14,11 @@ jobs: timeout-minutes: 20 steps: - name: Checkout tested commit - uses: https://github.com/actions/checkout@v4 + run: | + git init . + git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" + git fetch --depth=1 origin "${GITHUB_SHA}" + git checkout --detach FETCH_HEAD - name: Runner Python run: python --version - name: Install portable test dependencies