Skip to content

Commit a7d013d

Browse files
committed
fix(ci): add explicit bash shell for Windows compatibility in workflow
The uv cache dir commands use bash-specific syntax ( and command substitution) that fails on Windows runners without explicit shell specification. Added shell: bash to all three get-uv-cache steps.
1 parent 23d4d22 commit a7d013d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/python-package.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
req${{ hashFiles('setup.cfg') }}"
4545
- id: get-uv-cache
4646
if: steps.python-cache.outputs.cache-hit != 'true'
47+
shell: bash
4748
run: echo "uv-cache-dir=$(uv cache dir)" >> ${GITHUB_OUTPUT}
4849
- name: "Cache uv"
4950
if: steps.python-cache.outputs.cache-hit != 'true'
@@ -173,6 +174,7 @@ jobs:
173174
req${{ hashFiles('setup.cfg') }}"
174175
- id: get-uv-cache
175176
if: steps.python-cache.outputs.cache-hit != 'true'
177+
shell: bash
176178
run: echo "uv-cache-dir=$(uv cache dir)" >> ${GITHUB_OUTPUT}
177179
- name: "Cache uv"
178180
if: steps.python-cache.outputs.cache-hit != 'true'
@@ -232,6 +234,7 @@ jobs:
232234
req${{ hashFiles('setup.cfg') }}"
233235
- id: get-uv-cache
234236
if: steps.python-cache.outputs.cache-hit != 'true'
237+
shell: bash
235238
run: echo "uv-cache-dir=$(uv cache dir)" >> ${GITHUB_OUTPUT}
236239
- name: "Cache uv"
237240
if: steps.python-cache.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)