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