From 309aca6036833859bb9c6c25a92e18aa3ad19234 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 29 Mar 2026 00:02:17 +0000 Subject: [PATCH] ci: use system Python instead of setup-python action --- .gitea/workflows/pr-check.yml | 10 +++------- .gitea/workflows/release.yml | 19 +++++-------------- 2 files changed, 8 insertions(+), 21 deletions(-) diff --git a/.gitea/workflows/pr-check.yml b/.gitea/workflows/pr-check.yml index 8874abb..8d5c43c 100644 --- a/.gitea/workflows/pr-check.yml +++ b/.gitea/workflows/pr-check.yml @@ -12,14 +12,10 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version: "3.12" - - - name: Install UV + - name: Use system Python run: | - curl -LsSf https://astral.sh/uv/install.sh | sh + echo "Python $(python3 --version)" + echo "UV=$(uv --version)" echo "$HOME/.local/bin" >> $GITHUB_PATH - name: Install dependencies diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index a8c0e84..a3f24ec 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -19,14 +19,10 @@ jobs: with: fetch-depth: 0 - - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version: "3.12" - - - name: Install UV + - name: Use system Python run: | - curl -LsSf https://astral.sh/uv/install.sh | sh + echo "Python $(python3 --version)" + echo "UV=$(uv --version)" echo "$HOME/.local/bin" >> $GITHUB_PATH - name: Get version from tag or pyproject @@ -83,14 +79,9 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version: "3.12" - - - name: Install UV + - name: Use system Python run: | - curl -LsSf https://astral.sh/uv/install.sh | sh + echo "Python $(python3 --version)" echo "$HOME/.local/bin" >> $GITHUB_PATH - name: Install dependencies