From 9c0c8dc6aeed43b16e23c4cf3d5c927a9c5ad4db Mon Sep 17 00:00:00 2001 From: Tim Saucer Date: Tue, 14 Jan 2025 13:47:44 -0500 Subject: [PATCH] Enable cache in CI --- .github/workflows/build.yml | 10 ++++++++++ .github/workflows/docs.yaml | 2 ++ .github/workflows/test.yaml | 2 ++ 3 files changed, 14 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 115f586d..11e1da23 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,6 +34,9 @@ jobs: python-version: "3.12" - uses: astral-sh/setup-uv@v5 + with: + enable-cache: true + - name: Install dependencies run: uv sync --dev --no-install-package datafusion @@ -48,6 +51,9 @@ jobs: steps: - uses: actions/checkout@v4 - uses: astral-sh/setup-uv@v5 + with: + enable-cache: true + - name: Generate license file run: uv run --no-project python ./dev/create_license.py - uses: actions/upload-artifact@v4 @@ -88,6 +94,8 @@ jobs: - name: Install dependencies and build uses: astral-sh/setup-uv@v5 + with: + enable-cache: true - name: Build Python package run: | @@ -143,6 +151,8 @@ jobs: - name: Install dependencies and build uses: astral-sh/setup-uv@v5 + with: + enable-cache: true - name: Build Python package run: | diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index c6ef355e..9037e0a5 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -59,6 +59,8 @@ jobs: - name: Install dependencies and build uses: astral-sh/setup-uv@v5 + with: + enable-cache: true - name: Build repo run: | diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 72a9fd18..c93d4c06 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -75,6 +75,8 @@ jobs: - name: Install dependencies and build uses: astral-sh/setup-uv@v5 + with: + enable-cache: true - name: Run tests env: