From dee6d0b8180313404c9ccd723bf9f2839eab53fd Mon Sep 17 00:00:00 2001 From: Amir Husayn Panahifar Date: Sat, 12 Sep 2026 14:35:00 +0330 Subject: [PATCH] ci: cache uv and Python toolchain in gitea workflow --- .gitea/workflows/ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index d9adbc9..33129e4 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -23,6 +23,16 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v3 + with: + enable-cache: true + + - name: Cache Python toolchain + uses: actions/cache@v4 + with: + path: /opt/hostedtoolcache/Python + key: python-${{ matrix.python-version }}-${{ runner.os }} + restore-keys: | + python-${{ matrix.python-version }}- - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 @@ -64,6 +74,16 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v3 + with: + enable-cache: true + + - name: Cache Python toolchain + uses: actions/cache@v4 + with: + path: /opt/hostedtoolcache/Python + key: python-3.13-${{ runner.os }} + restore-keys: | + python-3.13- - name: Set up Python uses: actions/setup-python@v5