Skip to content

Commit 153a961

Browse files
committed
Use pyside6 when running kikuchipy test suite to avoid segmentation fault
1 parent f99bb8c commit 153a961

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,9 @@ jobs:
254254
# TODO: revisit at some point, to get it to work on linux (hyperspyui CI works fine...)
255255
if: runner.os != 'linux' && always()
256256
name: Test new distribution (HyperSpyUI)
257+
env:
258+
# Specify pyqt5
259+
QT_API: pyqt5
257260
run: |
258261
conda activate "${{ env.install_dir }}"
259262
pytest --pyargs hyperspyui
@@ -328,7 +331,11 @@ jobs:
328331
name: Run test kikuchipy
329332
if: always()
330333
env:
331-
MPLBACKEND: 'agg'
334+
MPLBACKEND: agg
335+
# Need to specify pyside6 to avoid segmentation fault when running the kikuchipy test suite
336+
# quite brittle but there is currently alternative since kikuchipy install pysista and pyside6
337+
# which causes the segmentation when pyqt5 is imported before pyvista
338+
QT_API: pyside6
332339
run: |
333340
conda activate "${{ env.install_dir }}"
334341
pytest --pyargs kikuchipy -k "not test_spherical_pyvista and not test_not_allow_download_raises"
@@ -352,7 +359,7 @@ jobs:
352359
WP_SHA256: 08903f02514f59c891e3d56d3ff0d092a7d8571daf66237a5a2c2698068981ec
353360
WP_EXE: winpython.exe
354361
WP_DIR_NAME: WPy64-31241
355-
LIB_TO_INSTALL: abtem ase atomap dask-image exspy graphviz holospy hdf5plugin hyperspy[all] hyperspyui kikuchipy lumispy matplotlib-scalebar nglview particlespy py4dstem pymatgen pystackreg python-rapidjson pyxem scanning_drift_corr start_jupyter_cm
362+
LIB_TO_INSTALL:
356363

357364
steps:
358365
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)