Skip to content

Commit

Permalink
Enable cache in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
timsaucer committed Jan 14, 2025
1 parent 6491bdf commit 9c0c8dc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ jobs:

- name: Install dependencies and build
uses: astral-sh/setup-uv@v5
with:
enable-cache: true

- name: Build repo
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ jobs:

- name: Install dependencies and build
uses: astral-sh/setup-uv@v5
with:
enable-cache: true

- name: Run tests
env:
Expand Down

0 comments on commit 9c0c8dc

Please sign in to comment.