From aeef4011de1d6f4d1ca7c8e5cbe4644ed249b99a Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Fri, 17 Jul 2026 00:36:23 +0800 Subject: [PATCH] fix: remove setup-python action, use system python3 (not available in runner cache) --- .gitea/workflows/code-review.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/code-review.yml b/.gitea/workflows/code-review.yml index c835a1be8..23f3c1eb0 100644 --- a/.gitea/workflows/code-review.yml +++ b/.gitea/workflows/code-review.yml @@ -25,15 +25,10 @@ jobs: with: fetch-depth: 0 - - name: Setup Python - uses: actions/setup-python@v4 - with: - python-version: "3.11" - - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install requests + python3 -m pip install --upgrade pip + python3 -m pip install requests - name: Run AI Code Review env: @@ -53,6 +48,6 @@ jobs: MAX_DIFF_CHARS: "30000" LLM_TIMEOUT: "120" run: | - python scripts/ci_code_review.py + python3 scripts/ci_code_review.py # 审查脚本异常不影响 CI 通过 continue-on-error: true