Skip to content

Commit 3552e77

Browse files
committed
Just use euo pipefail instead of l
1 parent 7b168da commit 3552e77

File tree

8 files changed

+20
-24
lines changed

8 files changed

+20
-24
lines changed

.github/actions/build_pandas/action.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ runs:
1313
micromamba info
1414
micromamba list
1515
pip list --pre
16-
shell: bash -el {0}
16+
shell: bash -euo pipefail {0}
1717

1818
- name: Uninstall existing Pandas installation
1919
run: |
2020
if pip show pandas 1>/dev/null; then
2121
pip uninstall -y pandas
2222
fi
23-
shell: bash -el {0}
23+
shell: bash -euo pipefail {0}
2424

2525
- name: Build Pandas
2626
run: |
@@ -29,4 +29,4 @@ runs:
2929
else
3030
pip install . --no-build-isolation -v
3131
fi
32-
shell: bash -el {0}
32+
shell: bash -euo pipefail {0}

.github/actions/run-tests/action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ runs:
44
steps:
55
- name: Test
66
run: ci/run_tests.sh
7-
shell: bash -el {0}
7+
shell: bash -euo pipefail {0}
88

99
- name: Publish test results
1010
uses: actions/upload-artifact@v3
@@ -15,7 +15,7 @@ runs:
1515

1616
- name: Report Coverage
1717
run: coverage report -m
18-
shell: bash -el {0}
18+
shell: bash -euo pipefail {0}
1919
if: failure()
2020

2121
- name: Upload coverage to Codecov

.github/workflows/code-checks.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-22.04
2525
defaults:
2626
run:
27-
shell: bash -el {0}
27+
shell: bash -euo pipefail {0}
2828

2929
concurrency:
3030
# https://github.community/t/concurrecy-not-work-for-push/183068/7
@@ -100,7 +100,7 @@ jobs:
100100
runs-on: ubuntu-22.04
101101
defaults:
102102
run:
103-
shell: bash -el {0}
103+
shell: bash -euo pipefail {0}
104104

105105
concurrency:
106106
# https://github.community/t/concurrecy-not-work-for-push/183068/7
@@ -131,7 +131,7 @@ jobs:
131131
runs-on: ubuntu-22.04
132132
defaults:
133133
run:
134-
shell: bash -el {0}
134+
shell: bash -euo pipefail {0}
135135

136136
concurrency:
137137
# https://github.community/t/concurrecy-not-work-for-push/183068/7

.github/workflows/comment-commands.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
if: github.event.issue.pull_request && startsWith(github.event.comment.body, '@github-actions benchmark')
3737
defaults:
3838
run:
39-
shell: bash -el {0}
39+
shell: bash -euo pipefail {0}
4040
env:
4141
ENV_FILE: environment.yml
4242
COMMENT: ${{github.event.comment.body}}

.github/workflows/docbuild-and-upload.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
defaults:
3434
run:
35-
shell: bash -el {0}
35+
shell: bash -euo pipefail {0}
3636

3737
steps:
3838
- name: Checkout

.github/workflows/package-checks.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ permissions:
1616

1717
defaults:
1818
run:
19-
shell: bash -el {0}
19+
shell: bash -euo pipefail {0}
2020

2121
jobs:
2222
pip:
@@ -47,7 +47,7 @@ jobs:
4747
- name: Pip install with extra
4848
run: |
4949
python -m pip install .[${{ matrix.extra }}] -v
50-
shell: bash -el {0}
50+
shell: bash -euo pipefail {0}
5151
conda_forge_recipe:
5252
if: ${{ github.event.label.name == 'Build' || contains(github.event.pull_request.labels.*.name, 'Build') || github.event_name == 'push'}}
5353
runs-on: ubuntu-22.04

.github/workflows/unit-tests.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ permissions:
1818

1919
defaults:
2020
run:
21-
shell: bash -el {0}
21+
shell: bash -euo pipefail {0}
2222

2323
jobs:
2424
ubuntu:
@@ -337,10 +337,8 @@ jobs:
337337
with:
338338
python-version: '3.12-dev'
339339

340-
- name: Build Environment
340+
- name: Install Environment
341341
run: |
342-
${{ steps.pydev.outputs.python-path }} -m venv ~/virtualenvs/pandas-dev
343-
. ~/virtualenvs/pandas-dev/bin/activate
344342
python --version
345343
python -m pip install --upgrade pip setuptools wheel meson[ninja]==1.0.1 meson-python==0.13.1
346344
python -m pip install --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy
@@ -350,6 +348,4 @@ jobs:
350348
python -m pip list
351349
352350
- name: Run Tests
353-
run: |
354-
. ~/virtualenvs/pandas-dev/bin/activate
355-
ci/run_tests.sh
351+
uses: ./.github/actions/run-tests

.github/workflows/wheels.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
7474
- name: Output sdist name
7575
id: save-path
76-
shell: bash -el {0}
76+
shell: bash -euo pipefail {0}
7777
run: echo "sdist_name=$(ls ./dist)" >> "$GITHUB_OUTPUT"
7878

7979
build_wheels:
@@ -123,7 +123,7 @@ jobs:
123123

124124
- name: Output sdist name (macOS)
125125
id: save-path
126-
shell: bash -el {0}
126+
shell: bash -euo pipefail {0}
127127
run: echo "sdist_name=$(ls ./dist)" >> "$GITHUB_ENV"
128128

129129
# Python version used to build sdist doesn't matter
@@ -135,7 +135,7 @@ jobs:
135135
136136
- name: Output sdist name (macOS)
137137
id: save-path2
138-
shell: bash -el {0}
138+
shell: bash -euo pipefail {0}
139139
run: echo "sdist_name=$(cd ./dist && ls -d */)" >> "$GITHUB_ENV"
140140

141141
- name: Build wheels
@@ -158,7 +158,7 @@ jobs:
158158
cache-environment: true
159159

160160
- name: Validate wheel RECORD
161-
shell: bash -el {0}
161+
shell: bash -euo pipefail {0}
162162
run: for whl in $(ls wheelhouse); do wheel unpack wheelhouse/$whl -d /tmp; done
163163

164164
# Testing on windowsservercore instead of GHA runner to fail on missing DLLs
@@ -181,7 +181,7 @@ jobs:
181181

182182
- name: Upload wheels & sdist
183183
if: ${{ success() && (env.IS_SCHEDULE_DISPATCH == 'true' || env.IS_PUSH == 'true') }}
184-
shell: bash -el {0}
184+
shell: bash -euo pipefail {0}
185185
env:
186186
PANDAS_STAGING_UPLOAD_TOKEN: ${{ secrets.PANDAS_STAGING_UPLOAD_TOKEN }}
187187
PANDAS_NIGHTLY_UPLOAD_TOKEN: ${{ secrets.PANDAS_NIGHTLY_UPLOAD_TOKEN }}

0 commit comments

Comments
 (0)