Skip to content

Commit 022ca1d

Browse files
committed
Set QT_API and PYTEST_QT_API environment variable to pyqt5 for whole workflow
1 parent a46739e commit 022ca1d

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ permissions:
1717
contents: write
1818

1919
env:
20-
MPLBACKEND: 'agg'
20+
MPLBACKEND: agg
21+
QT_API: pyqt5
22+
# pytest-qt doesn't seem to be playing well when pyqt5 and pyside6
23+
# are installed in the same environment
24+
PYTEST_QT_API: pyqt5
2125
TEST_DEPS: pytest pytest-qt pytest-xdist pytest-rerunfailures pytest-mpl filelock
2226

2327
jobs:
@@ -251,12 +255,8 @@ jobs:
251255
mamba install ${{ env.TEST_DEPS }}
252256
253257
- shell: bash -l {0}
254-
# TODO: revisit at some point, to get it to work on linux (hyperspyui CI works fine...)
255-
if: runner.os != 'linux' && always()
258+
if: always()
256259
name: Test new distribution (HyperSpyUI)
257-
env:
258-
# Specify pyqt5
259-
QT_API: pyqt5
260260
run: |
261261
conda activate "${{ env.install_dir }}"
262262
pytest --pyargs hyperspyui
@@ -331,7 +331,6 @@ jobs:
331331
name: Run test kikuchipy
332332
if: always()
333333
env:
334-
MPLBACKEND: agg
335334
# Need to specify pyside6 to avoid segmentation fault when running the kikuchipy test suite
336335
# quite brittle but there is currently alternative since kikuchipy install pysista and pyside6
337336
# which causes the segmentation when pyqt5 is imported before pyvista

0 commit comments

Comments
 (0)