Skip to content

Commit 913b8aa

Browse files
committed
COMP: Set MPLBACKEND to Qt5Agg in CI testing
To work around the error: from matplotlib.backends import _macosx ImportError: Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework. See the Python documentation for more information on installing Python as a framework on Mac OS X. Please either reinstall Python as a framework, or try one of the other backends. If you are using (Ana)Conda please install python.app and replace the use of 'python' with 'pythonw'. See 'Working with Matplotlib on OSX' in the Matplotlib FAQ for more information.
1 parent 7afe4b1 commit 913b8aa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build-test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
run: |
2323
python -m pip install --upgrade pip
2424
python -m pip install --upgrade setuptools wheel
25-
pip install -r requirements.txt -r requirements-dev.txt
25+
pip install -r requirements.txt -r requirements-dev.txt PySide2
2626
- name: Install package and extension
2727
run: |
2828
python -m pip install -e .
@@ -32,6 +32,8 @@ jobs:
3232
python -m pip install jupyterlab
3333
jupyter labextension install @jupyter-widgets/jupyterlab-manager
3434
jupyter labextension install ./js
35+
env:
36+
MPLBACKEND: Qt5Agg
3537
- name: Lint with flake8
3638
run: |
3739
python -m pip install flake8
@@ -43,6 +45,8 @@ jobs:
4345
run: |
4446
python -m pip install pytest
4547
python -m pytest --tb=long --verbose --deselect tests/test_transform_types.py::test_vtkpolydata_to_geometry
48+
env:
49+
MPLBACKEND: Qt5Agg
4650
- name: Test package generation and installation
4751
run: |
4852
python setup.py sdist

0 commit comments

Comments
 (0)