Skip to content

Commit 3571698

Browse files
committed
Adjust bash default for the workflow
1 parent e5286d0 commit 3571698

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/test-wheel-linux.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ on:
2020
type: string
2121
default: "."
2222

23+
defaults:
24+
run:
25+
shell: bash --noprofile --norc -xeuo pipefail {0}
26+
2327
jobs:
2428
compute-matrix:
2529
runs-on: ubuntu-latest
@@ -39,8 +43,6 @@ jobs:
3943
- name: Compute Python Test Matrix
4044
id: compute-matrix
4145
run: |
42-
set -eo pipefail
43-
4446
# Set a default GPU based upon architecture.
4547
gpu="l4"
4648
if [[ "${ARCH}" == "arm64" ]]; then
@@ -134,9 +136,6 @@ jobs:
134136
image: ubuntu:22.04
135137
env:
136138
NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }}
137-
defaults:
138-
run:
139-
shell: bash --noprofile --norc -xeuo pipefail {0}
140139
steps:
141140
- name: Ensure GPU is working
142141
run: nvidia-smi

0 commit comments

Comments
 (0)