Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sdb9696 committed Apr 16, 2024
1 parent 4150e30 commit 541b5e6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ inputs:
use-uv-installer:
default: false
uv-version:
default: 0.1.31
default: 0.1.32
cache-version:
default: "v0.2"

Expand Down Expand Up @@ -100,14 +100,16 @@ runs:
- uses: actions/cache@v4
if: inputs.use-uv-installer == 'true'
name: uv venv
id: uv-venv-cache
with:
save-always: true
path: |
${{ steps.uv-variables-setup.outputs.uv-venv-location }}
key: ${{ inputs.cache-version }}-uv-${{ inputs.uv-version }}-venv-${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('poetry.lock') }}-options-${{ inputs.poetry-install-options }}

- uses: actions/cache/restore@v4
if: inputs.use-uv-installer == 'true'
#if: ${{ (steps.uv-venv-cache.outputs.cache-hit != 'true') && ( inputs.use-uv-installer == 'true') }}
if: ${{ inputs.use-uv-installer == 'true' }}
name: uv cache
id: uv-cache-restore
with:
Expand Down Expand Up @@ -152,8 +154,9 @@ runs:
key: ${{ inputs.cache-version }}-${{ runner.os }}-pre-commit-${{ steps.pre-commit-version.outputs.pre-commit-version }}-python-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('.pre-commit-config.yaml') }}

- uses: actions/cache/save@v4
if: inputs.use-uv-installer == 'true'
name: Save uv cache
with:
path: |
${{ steps.uv-variables-setup.outputs.uv-cache-location }}
key: ${{ steps.uv-cache-restore.outputs.cache-primary-key }}
key: ${{ inputs.cache-version }}-uv-${{ inputs.uv-version }}-cache-${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}

0 comments on commit 541b5e6

Please sign in to comment.