@@ -116,6 +116,10 @@ jobs:
116116 DISPLAY : ' :0'
117117 MICROMAMBA_VERSION : ' 2.0.5'
118118
119+ defaults :
120+ run :
121+ shell : bash -el {0}
122+
119123 steps :
120124 - uses : actions/checkout@v4
121125 - uses : conda-incubator/setup-miniconda@v3
@@ -124,20 +128,17 @@ jobs:
124128 channels : conda-forge
125129 channel-priority : strict
126130
127- - shell : bash -l {0}
128- name : Conda info
131+ - name : Conda info
129132 run : |
130133 conda info
131134 conda list
132135
133- - shell : bash -l {0}
134- name : Install constructor
136+ - name : Install constructor
135137 run : |
136138 conda install constructor
137139
138- - shell : bash -l {0}
140+ - name : Install micromamba
139141 if : matrix.ARCH == 'arm64'
140- name : Install micromamba
141142 run : |
142143 TEMP_DIR=$(mktemp -d)
143144 mkdir "${TEMP_DIR}/micromamba"
@@ -149,8 +150,7 @@ jobs:
149150 ls ${PWD}/bin
150151 popd
151152
152- - shell : bash -l {0}
153- name : Build distribution
153+ - name : Build distribution
154154 env :
155155 VERSION : ${{ needs.create_release_job.outputs.VERSION }}
156156 BLAS_IMPL : ${{ matrix.BLAS_IMPL }}
@@ -162,8 +162,7 @@ jobs:
162162 constructor -v conda_distribution
163163 fi
164164
165- - shell : bash -l {0}
166- name : Set asset name
165+ - name : Set asset name
167166 env :
168167 ext : ${{ matrix.INSTALLER_EXTENSION }}
169168 run : |
@@ -205,7 +204,6 @@ jobs:
205204 if : runner.os == 'windows'
206205 env :
207206 install_dir : ' ${{ github.workspace }}\nd'
208- shell : bash
209207 run : |
210208 echo "install_dir=${{ env.install_dir }}" >> $GITHUB_ENV
211209
@@ -222,17 +220,15 @@ jobs:
222220 path : ${{ env.asset_name }}
223221 name : ${{ env.asset_name }}
224222
225- - shell : bash -l {0}
226- name : Info new distribution
223+ - name : Info new distribution
227224 run : |
228225 conda activate "${{ env.install_dir }}"
229226 conda info
230227 conda config --show channels
231228 conda config --show channel_priority
232229 conda list
233230
234- - shell : bash -l {0}
235- name : Check latest available hyperspy version
231+ - name : Check latest available hyperspy version
236232 run : |
237233 conda activate "${{ env.install_dir }}"
238234 python check_hyperspy_latest.py
@@ -247,89 +243,77 @@ jobs:
247243 run : |
248244 sudo /usr/bin/Xvfb ${{ env.DISPLAY }} -screen 0 1280x1024x24 &
249245
250- - shell : bash -l {0}
251- name : Install test dependencies
246+ - name : Install test dependencies
252247 if : always()
253248 run : |
254249 conda activate "${{ env.install_dir }}"
255250 mamba install ${{ env.TEST_DEPS }}
256251
257- - shell : bash -l {0}
258- if : always()
252+ - if : always()
259253 name : Test new distribution (HyperSpyUI)
260254 run : |
261255 conda activate "${{ env.install_dir }}"
262256 # Error on closing figure, not critical
263257 pytest --pyargs hyperspyui -k "not plotting"
264258
265- - shell : bash -l {0}
266- name : Test RosettaSciIO
259+ - name : Test RosettaSciIO
267260 if : always()
268261 run : |
269262 conda activate "${{ env.install_dir }}"
270263 pytest --pyargs rsciio --reruns 3 -n 1 -k "not TestOperate"
271264
272- - shell : bash -l {0}
273- name : Test hyperspy
265+ - name : Test hyperspy
274266 if : always()
275267 run : |
276268 conda activate "${{ env.install_dir }}"
277269 pytest --pyargs hyperspy --reruns 3 -n 2
278270
279- - shell : bash -l {0}
280- name : Test hyperspy_gui_ipywidgets
271+ - name : Test hyperspy_gui_ipywidgets
281272 if : always()
282273 run : |
283274 conda activate "${{ env.install_dir }}"
284275 pytest --pyargs hyperspy_gui_ipywidgets
285276
286- - shell : bash -l {0}
287- name : Test hyperspy_gui_traitsui
277+ - name : Test hyperspy_gui_traitsui
288278 if : runner.os != 'linux' && always()
289279 run : |
290280 conda activate "${{ env.install_dir }}"
291281 # test_image_contrast_tool not supported with agg backend
292282 pytest --pyargs hyperspy_gui_traitsui -k "not test_image_contrast_tool"
293283
294- - shell : bash -l {0}
295- name : Run test exspy
284+ - name : Run test exspy
296285 if : always()
297286 run : |
298287 conda activate "${{ env.install_dir }}"
299288 pytest --pyargs exspy
300289
301- - shell : bash -l {0}
302- name : Run test holospy
290+ - name : Run test holospy
303291 if : always()
304292 run : |
305293 conda activate "${{ env.install_dir }}"
306294 pytest --pyargs holospy
307295
308- - shell : bash -l {0}
309- name : Run test lumispy
296+ - name : Run test lumispy
310297 if : always()
311298 run : |
312299 conda activate "${{ env.install_dir }}"
313300 pytest --pyargs lumispy
314301
315- - shell : bash -l {0}
316- name : Run test pyxem
302+ - name : Run test pyxem
317303 if : always()
318304 run : |
319305 conda activate "${{ env.install_dir }}"
320306 # cause of the TestAddEllipseArrayAsMarkers failure is unknown (seems to be on blas mkl only)
321307 pytest --pyargs pyxem -k "not TestAddEllipseArrayAsMarkers"
322308
323- - shell : bash -l {0}
324- name : Run test atomap
309+ - name : Run test atomap
325310 if : always()
326311 run : |
327312 conda activate "${{ env.install_dir }}"
328313 # Skip interactive test
329314 pytest --pyargs atomap -k "not TestSelectAtomsWithGui"
330315
331- # - shell: bash -l {0}
332- # name: Run test kikuchipy
316+ # - name: Run test kikuchipy
333317 # if: always()
334318 # env:
335319 # # Need to specify pyside6 to avoid segmentation fault when running the kikuchipy test suite
0 commit comments