Skip to content

Commit

Permalink
COMP: Set MPLBACKEND to Qt5Agg in CI testing
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
thewtex committed Jan 12, 2020
1 parent 7afe4b1 commit 913b8aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools wheel
pip install -r requirements.txt -r requirements-dev.txt
pip install -r requirements.txt -r requirements-dev.txt PySide2
- name: Install package and extension
run: |
python -m pip install -e .
Expand All @@ -32,6 +32,8 @@ jobs:
python -m pip install jupyterlab
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install ./js
env:
MPLBACKEND: Qt5Agg
- name: Lint with flake8
run: |
python -m pip install flake8
Expand All @@ -43,6 +45,8 @@ jobs:
run: |
python -m pip install pytest
python -m pytest --tb=long --verbose --deselect tests/test_transform_types.py::test_vtkpolydata_to_geometry
env:
MPLBACKEND: Qt5Agg
- name: Test package generation and installation
run: |
python setup.py sdist
Expand Down

0 comments on commit 913b8aa

Please sign in to comment.