Skip to content

Commit

Permalink
Add env cache
Browse files Browse the repository at this point in the history
  • Loading branch information
dfsnow committed Dec 2, 2024
1 parent 0a87824 commit 4bcd774
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/python-build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ name: python-build-and-test
jobs:
build-and-test:
runs-on: ubuntu-latest
env:
UV_CACHE_DIR: ${{ env.RUNNER_TEMP }}/setup-uv-cache
strategy:
fail-fast: false
matrix:
Expand All @@ -23,6 +25,7 @@ jobs:
with:
enable-cache: true
cache-dependency-glob: pyproject.toml
cache-local-path: ${{ env.UV_CACHE_DIR }}
cache-suffix: tox

- name: Setup Python ${{ matrix.python-version }}
Expand All @@ -41,4 +44,8 @@ jobs:

- name: Run tox test suite
shell: bash
run: tox run --skip-pkg-install
run: tox run -vv --skip-pkg-install

# https://docs.astral.sh/uv/concepts/cache/#caching-in-continuous-integration
# - name: Minimize uv cache
# run: uv cache prune --ci

0 comments on commit 4bcd774

Please sign in to comment.