From fe7a9dd9c0454186f3074c0494df76327c94c494 Mon Sep 17 00:00:00 2001 From: AdrianoDev Date: Wed, 29 Apr 2026 08:23:50 +0200 Subject: [PATCH] ci: usa astral-sh/setup-uv@v5 con python-version 3.13 (gestisce uv + Python + cache) --- .gitea/workflows/ci.yml | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index f0b4a12..d8e0b71 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -16,12 +16,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Install uv - run: | - curl -LsSf https://astral.sh/uv/install.sh | sh - echo "$HOME/.local/bin" >> $GITHUB_PATH - - name: Install Python 3.13 via uv - run: uv python install 3.13 + - name: Setup uv + Python 3.13 + uses: astral-sh/setup-uv@v5 + with: + python-version: '3.13' + enable-cache: true - name: Install deps run: uv sync --frozen --group dev - name: Ruff check @@ -32,12 +31,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Install uv - run: | - curl -LsSf https://astral.sh/uv/install.sh | sh - echo "$HOME/.local/bin" >> $GITHUB_PATH - - name: Install Python 3.13 via uv - run: uv python install 3.13 + - name: Setup uv + Python 3.13 + uses: astral-sh/setup-uv@v5 + with: + python-version: '3.13' + enable-cache: true - name: Install deps run: uv sync --frozen --group dev - name: Mypy on mcp_common (gating) @@ -50,12 +48,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Install uv - run: | - curl -LsSf https://astral.sh/uv/install.sh | sh - echo "$HOME/.local/bin" >> $GITHUB_PATH - - name: Install Python 3.13 via uv - run: uv python install 3.13 + - name: Setup uv + Python 3.13 + uses: astral-sh/setup-uv@v5 + with: + python-version: '3.13' + enable-cache: true - name: Install deps run: uv sync --frozen --group dev - name: Pytest full suite