From 862ea3dfed904366991ccfe1af2ee9be9784782d Mon Sep 17 00:00:00 2001 From: "Timur M. Carstensen" <40788422+timurcarstensen@users.noreply.github.com> Date: Wed, 15 Jan 2025 15:55:44 +0100 Subject: [PATCH] ci: enable uv cache (#171) Co-authored-by: Timur Carstensen --- .github/workflows/pre-commit.yaml | 3 ++- .github/workflows/tests.yaml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index 33b2e805..1e34f783 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -26,9 +26,10 @@ jobs: steps: - uses: actions/checkout@v4 - name: install the latest version uv - uses: astral-sh/setup-uv@v3 + uses: astral-sh/setup-uv@v5 with: version: latest + enable-cache: true - name: create virtual environment run: uv venv --python '3.10' - name: install pre-commit diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index a7b88cb2..6361a998 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -26,9 +26,10 @@ jobs: steps: - uses: actions/checkout@v4 - name: install the latest version uv - uses: astral-sh/setup-uv@v3 + uses: astral-sh/setup-uv@v5 with: version: latest + enable-cache: true - name: create venv run: uv venv --python ${{ matrix.python-version }} - name: install dependencies