Skip to content

Commit 1577328

Browse files
huydhnpytorchmergebot
authored andcommitted
Set bash shell on Windows (pytorch#128854)
Attempt to fix the missing python3 command on the new Windows AMI https://github.com/pytorch/pytorch/actions/runs/9551494945/job/26325922503. I added the logic to copy python to python3 to make the command available, it worked with the previous AMI, but start to fail now and the cause is not clear (maybe it's not the AMI, but a new GitHub runner version) Pull Request resolved: pytorch#128854 Approved by: https://github.com/kit1980, https://github.com/malfet, https://github.com/atalman
1 parent b181b58 commit 1577328

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/_win-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ jobs:
4747
timeout-minutes: 240
4848
outputs:
4949
test-matrix: ${{ steps.filter.outputs.test-matrix }}
50+
defaults:
51+
run:
52+
shell: bash
5053
steps:
5154
# Duplicated in win-test because this MUST go before a checkout
5255
- name: Enable git symlinks on Windows and disable fsmonitor daemon
@@ -89,6 +92,7 @@ jobs:
8992

9093
- name: Parse ref
9194
id: parse-ref
95+
shell: bash
9296
run: python3 .github/scripts/parse_ref.py
9397

9498
- name: Get workflow job id

.github/workflows/_win-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ jobs:
4141
fail-fast: false
4242
runs-on: ${{ matrix.runner }}
4343
timeout-minutes: ${{ matrix.mem_leak_check == 'mem_leak_check' && 600 || inputs.timeout-minutes }}
44+
defaults:
45+
run:
46+
shell: bash
4447
steps:
4548
# Duplicated in win-build because this MUST go before a checkout
4649
- name: Enable git symlinks on Windows and disable fsmonitor daemon
@@ -224,6 +227,7 @@ jobs:
224227

225228
- name: Parse ref
226229
id: parse-ref
230+
shell: bash
227231
run: python3 .github/scripts/parse_ref.py
228232

229233
- name: Uninstall PyTorch

0 commit comments

Comments
 (0)