Skip to content

Commit e079fa2

Browse files
committed
fix: include python-version in setup-python cache key
1 parent a62e303 commit e079fa2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,15 @@ runs:
148148
if: ${{ inputs.setup-python == '1' && inputs.setup-type != 'uv' }}
149149
with:
150150
python-version: ${{ inputs.python-version }}
151-
cache: ${{ inputs.setup-type }}
151+
cache: ${{ inputs.setup-type }}-${{ inputs.python-version }}
152152
- name: Install uv
153153
if: ${{ inputs.setup-type == 'uv' }}
154154
uses: astral-sh/setup-uv@v7
155155
with:
156156
enable-cache: true
157157
cache-dependency-glob: |
158158
**/pyproject.toml
159+
**/uv.lock
159160
- name: Setup python version for uv
160161
if: ${{ inputs.setup-type == 'uv' }}
161162
run: |

0 commit comments

Comments
 (0)