Skip to content

Commit

Permalink
Set top-level default shell in CI workflows (dask#9469)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbourbeau authored Sep 7, 2022
1 parent b016998 commit e74888a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/additional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ name: Additional

on: [push, pull_request]

# Required shell entrypoint to have properly activated conda environments
defaults:
run:
shell: bash -l {0}

jobs:
mindeps:
runs-on: "ubuntu-latest"

strategy:
matrix:
environment: ["mindeps-array", "mindeps-dataframe", "mindeps-non-optional", "mindeps-distributed"]
Expand All @@ -27,11 +31,9 @@ jobs:
auto-activate-base: false

- name: Install
shell: bash -l {0}
run: source continuous_integration/scripts/install.sh

- name: Run tests
shell: bash -l {0}
run: source continuous_integration/scripts/run_tests.sh

doctest:
Expand All @@ -53,11 +55,9 @@ jobs:
auto-activate-base: false

- name: Install
shell: bash -l {0}
run: source continuous_integration/scripts/install.sh

- name: Run tests
shell: bash -l {0}
run: pytest -v --doctest-modules --ignore-glob='*/test_*.py' dask

imports:
Expand All @@ -82,7 +82,6 @@ jobs:
auto-activate-base: false

- name: Run import tests
shell: bash -l {0}
env:
PYTHON_VERSION: ${{ matrix.python-version }}
run: source continuous_integration/scripts/test_imports.sh
7 changes: 5 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

# Required shell entrypoint to have properly activated conda environments
defaults:
run:
shell: bash -l {0}

jobs:
test:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -55,7 +60,6 @@ jobs:
auto-activate-base: false

- name: Install
shell: bash -l {0}
run: source continuous_integration/scripts/install.sh

# This environment file is created in continuous_integration/scripts/install.sh
Expand All @@ -67,7 +71,6 @@ jobs:
path: env.yaml

- name: Run tests
shell: bash -l {0}
run: source continuous_integration/scripts/run_tests.sh

- name: Coverage
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
push:
pull_request:

# Required shell entrypoint to have properly activated conda environments
defaults:
run:
shell: bash -l {0}

jobs:

check:
Expand Down Expand Up @@ -52,14 +57,12 @@ jobs:
auto-activate-base: false

- name: Install
shell: bash -l {0}
env:
UPSTREAM_DEV: 1
run: source continuous_integration/scripts/install.sh

- name: Run tests
id: run_tests
shell: bash -l {0}
run: source continuous_integration/scripts/run_tests.sh

- name: Coverage
Expand Down

0 comments on commit e74888a

Please sign in to comment.