From 538b4cf8e900f53df967d348b54f26325c0a694f Mon Sep 17 00:00:00 2001 From: Jonas Haag Date: Mon, 28 Mar 2022 20:09:53 +0200 Subject: [PATCH] GHA: Use bash -el --- .github/actions/build_pandas/action.yml | 4 ++-- .github/actions/setup/action.yml | 4 ++-- .github/workflows/asv-bot.yml | 2 +- .github/workflows/code-checks.yml | 6 +++--- .github/workflows/posix.yml | 3 +-- .github/workflows/python-dev.yml | 4 ++-- .github/workflows/sdist.yml | 2 +- 7 files changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/actions/build_pandas/action.yml b/.github/actions/build_pandas/action.yml index 2e4bfea165316..e916d5bfde5fb 100644 --- a/.github/actions/build_pandas/action.yml +++ b/.github/actions/build_pandas/action.yml @@ -8,10 +8,10 @@ runs: run: | conda info conda list - shell: bash -l {0} + shell: bash -el {0} - name: Build Pandas run: | python setup.py build_ext -j 2 python -m pip install -e . --no-build-isolation --no-use-pep517 --no-index - shell: bash -l {0} + shell: bash -el {0} diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 9ef00e7a85a6f..c357f149f2c7f 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -5,8 +5,8 @@ runs: steps: - name: Setting conda path run: echo "${HOME}/miniconda3/bin" >> $GITHUB_PATH - shell: bash -l {0} + shell: bash -el {0} - name: Setup environment and build pandas run: ci/setup_env.sh - shell: bash -l {0} + shell: bash -el {0} diff --git a/.github/workflows/asv-bot.yml b/.github/workflows/asv-bot.yml index f3946aeb84a63..7b974f24fc162 100644 --- a/.github/workflows/asv-bot.yml +++ b/.github/workflows/asv-bot.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest defaults: run: - shell: bash -l {0} + shell: bash -el {0} concurrency: # Set concurrency to prevent abuse(full runs are ~5.5 hours !!!) diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index f32fed3b3ee68..4592279442b82 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -39,7 +39,7 @@ jobs: runs-on: ubuntu-latest defaults: run: - shell: bash -l {0} + shell: bash -el {0} concurrency: # https://github.community/t/concurrecy-not-work-for-push/183068/7 @@ -105,7 +105,7 @@ jobs: runs-on: ubuntu-latest defaults: run: - shell: bash -l {0} + shell: bash -el {0} concurrency: # https://github.community/t/concurrecy-not-work-for-push/183068/7 @@ -162,7 +162,7 @@ jobs: runs-on: ubuntu-latest defaults: run: - shell: bash -l {0} + shell: bash -el {0} concurrency: # https://github.community/t/concurrecy-not-work-for-push/183068/7 diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml index bc8791afc69f7..9f67c78ce7bb8 100644 --- a/.github/workflows/posix.yml +++ b/.github/workflows/posix.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest defaults: run: - shell: bash -l {0} + shell: bash -el {0} timeout-minutes: 120 strategy: matrix: @@ -159,7 +159,6 @@ jobs: if: ${{ env.IS_PYPY == 'true' }} - name: Setup PyPy dependencies - shell: bash run: | # TODO: re-enable cov, its slowing the tests down though pip install Cython numpy python-dateutil pytz pytest>=6.0 pytest-xdist>=1.31.0 pytest-asyncio hypothesis>=5.5.3 diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index c287827206336..a44f85222fb0e 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -56,7 +56,7 @@ jobs: # TODO: GH#44980 https://github.com/pypa/setuptools/issues/2941 - name: Install dependencies - shell: bash + shell: bash -el {0} run: | python -m pip install --upgrade pip "setuptools<60.0.0" wheel pip install -i https://pypi.anaconda.org/scipy-wheels-nightly/simple numpy @@ -74,7 +74,7 @@ jobs: python -c "import pandas; pandas.show_versions();" - name: Test with pytest - shell: bash + shell: bash -el {0} run: | ci/run_tests.sh diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml index 431710a49a7dd..b97b08c73fb71 100644 --- a/.github/workflows/sdist.yml +++ b/.github/workflows/sdist.yml @@ -20,7 +20,7 @@ jobs: timeout-minutes: 60 defaults: run: - shell: bash -l {0} + shell: bash -el {0} strategy: fail-fast: false