Skip to content

Commit f33fca2

Browse files
committed
CI: use conda-initialized bash for the whole tests workflow
1 parent 03ceaea commit f33fca2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/tests.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ concurrency:
1313
group: tests-${{ github.ref }}
1414
cancel-in-progress: true
1515

16+
# Required shell entrypoint to have properly activated conda environments
17+
defaults:
18+
run:
19+
shell: bash -l {0}
20+
1621
jobs:
1722
test:
1823
# Do not run the schedule job on forks
@@ -111,7 +116,6 @@ jobs:
111116
# export TEST_ID="$TEST_ID-${{ matrix.run }}"
112117
echo "TEST_ID: $TEST_ID"
113118
echo "TEST_ID=$TEST_ID" >> $GITHUB_ENV
114-
shell: bash
115119
116120
- name: Checkout source
117121
uses: actions/checkout@v4.1.3
@@ -127,7 +131,6 @@ jobs:
127131
activate-environment: dask-distributed
128132

129133
- name: Show conda options
130-
shell: bash -l {0}
131134
run: conda config --show
132135

133136
- name: Check if caching is enabled
@@ -145,7 +148,6 @@ jobs:
145148
)
146149
id: get-date
147150
run: echo "::set-output name=today::$(/bin/date -u '+%Y%m%d')"
148-
shell: bash
149151

150152
- name: Cache Conda env
151153
if: steps.skip-caching.outputs.trigger-found != 'true'
@@ -254,7 +256,6 @@ jobs:
254256
255257
- name: Generate junit XML report in case of pytest-timeout
256258
if: ${{ failure() }}
257-
shell: bash -l {0}
258259
run: |
259260
if [ ! -e reports/pytest.xml ]
260261
then
@@ -277,7 +278,6 @@ jobs:
277278
always() &&
278279
(steps.run_tests.outcome == 'success' || steps.run_tests.outcome == 'failure') &&
279280
matrix.os != 'windows-latest'
280-
shell: bash -l {0}
281281
run: sed -i'' -e 's/filename="/filename="distributed\//g' coverage.xml
282282

283283
# Do not upload coverage reports for cron jobs

0 commit comments

Comments
 (0)