From 9add8161886edd92fd00bb9946d16baaaf3574c9 Mon Sep 17 00:00:00 2001 From: Miwory Date: Fri, 31 Jan 2025 22:01:46 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=BE=D0=B2=D1=8B=D0=B9=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B5-=D0=BA=D0=BE=D0=BC=D0=BC=D0=B8=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/latest.yaml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/latest.yaml b/.gitea/workflows/latest.yaml index 3ceb4df..be8a17f 100644 --- a/.gitea/workflows/latest.yaml +++ b/.gitea/workflows/latest.yaml @@ -15,13 +15,30 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Install uv - uses: astral-sh/setup-uv@v3 + uses: astral-sh/setup-uv@v5 + with: + github-token: ${{ secrets._GITHUB_TOKEN }} + enable-cache: true - name: Set up Python run: uv python install + - name: Cache uv + uses: actions/cache@v4 + with: + path: ${{ github.workspace }}/.cache/uv + key: uv-cache-${{ runner.os }} + restore-keys: uv-cache-${{ runner.os }} + - name: Install the project - run: uv sync + run: uv sync --no-install-project --cache-dir ${{ github.workspace }}/.cache/uv + + - name: Cache pre-commit + uses: actions/cache@v4 + with: + path: ~/.cache/pre-commit + key: pre-commit-cache-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }} + restore-keys: pre-commit-cache-${{ runner.os }}- - name: Linter & Formatter run: uv run pre-commit run --all-files