95
95
texlive-luatex \
96
96
texlive-xetex \
97
97
ttf-wqy-zenhei
98
+ if [[ "${{ matrix.os }}" = ubuntu-20.04 ]]; then
99
+ sudo apt install -yy libopengl0
100
+ fi
98
101
;;
99
102
macOS)
100
103
brew install ccache
@@ -106,25 +109,25 @@ jobs:
106
109
if : startsWith(runner.os, 'Linux')
107
110
with :
108
111
path : ~/.cache/pip
109
- key : ${{ runner .os }}-py${{ matrix.python-version }}-pip-${{ hashFiles('requirements/*/*.txt') }}
112
+ key : ${{ matrix .os }}-py${{ matrix.python-version }}-pip-${{ hashFiles('requirements/*/*.txt') }}
110
113
restore-keys : |
111
- ${{ runner .os }}-py${{ matrix.python-version }}-pip-
114
+ ${{ matrix .os }}-py${{ matrix.python-version }}-pip-
112
115
- name : Cache pip
113
116
uses : actions/cache@v2
114
117
if : startsWith(runner.os, 'macOS')
115
118
with :
116
119
path : ~/Library/Caches/pip
117
- key : ${{ runner .os }}-py${{ matrix.python-version }}-pip-${{ hashFiles('requirements/*/*.txt') }}
120
+ key : ${{ matrix .os }}-py${{ matrix.python-version }}-pip-${{ hashFiles('requirements/*/*.txt') }}
118
121
restore-keys : |
119
- ${{ runner .os }}-py${{ matrix.python-version }}-pip-
122
+ ${{ matrix .os }}-py${{ matrix.python-version }}-pip-
120
123
- name : Cache ccache
121
124
uses : actions/cache@v2
122
125
with :
123
126
path : |
124
127
~/.ccache
125
- key : ${{ runner .os }}-py${{ matrix.python-version }}-ccache-${{ hashFiles('src/*') }}
128
+ key : ${{ matrix .os }}-py${{ matrix.python-version }}-ccache-${{ hashFiles('src/*') }}
126
129
restore-keys : |
127
- ${{ runner .os }}-py${{ matrix.python-version }}-ccache-
130
+ ${{ matrix .os }}-py${{ matrix.python-version }}-ccache-
128
131
- name : Cache Matplotlib
129
132
uses : actions/cache@v2
130
133
with :
@@ -171,25 +174,28 @@ jobs:
171
174
# Sept 2020) for either pyqt5 (there are only wheels for 10.13+) or
172
175
# pyside2 (the latest version (5.13.2) with 10.12 wheels has a
173
176
# fatal to us bug, it was fixed in 5.14.0 which has 10.13 wheels)
174
- python -m pip install --upgrade pyqt5${{ matrix.pyqt5-ver }} &&
175
- python -c 'import PyQt5.QtCore' &&
176
- echo 'PyQt5 is available' ||
177
- echo 'PyQt5 is not available'
178
- python -m pip install --upgrade pyside2 &&
179
- python -c 'import PySide2.QtCore' &&
180
- echo 'PySide2 is available' ||
181
- echo 'PySide2 is not available'
182
- python -mpip install --upgrade pyqt6 &&
183
- python -c 'import PyQt6.QtCore' &&
184
- echo 'PyQt6 is available' ||
185
- echo 'PyQt6 is not available'
186
- python -mpip install --upgrade pyside6 &&
187
- python -c 'import PySide6.QtCore' &&
188
- echo 'PySide6 is available' ||
189
- echo 'PySide6 is not available'
177
+ python -mpip install --upgrade pyqt5${{ matrix.pyqt5-ver }} &&
178
+ python -c 'import PyQt5.QtCore' &&
179
+ echo 'PyQt5 is available' ||
180
+ echo 'PyQt5 is not available'
181
+ python -mpip install --upgrade pyside2 &&
182
+ python -c 'import PySide2.QtCore' &&
183
+ echo 'PySide2 is available' ||
184
+ echo 'PySide2 is not available'
185
+ # Qt6 crashes on Github's ubuntu 18.04 runner.
186
+ if [[ "${{ matrix.os }}" = ubuntu-20.04 ]]; then
187
+ python -mpip install --upgrade pyqt6 &&
188
+ python -c 'import PyQt6.QtCore' &&
189
+ echo 'PyQt6 is available' ||
190
+ echo 'PyQt6 is not available'
191
+ python -mpip install --upgrade pyside6 &&
192
+ python -c 'import PySide6.QtCore' &&
193
+ echo 'PySide6 is available' ||
194
+ echo 'PySide6 is not available'
195
+ fi
190
196
fi
191
- python -m pip install --upgrade \
192
- -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-$(lsb_release -r -s) \
197
+ python -mpip install --upgrade \
198
+ -f " https://extras.wxpython.org/wxPython4/extras/linux/gtk3/${{ matrix.os }}" \
193
199
wxPython &&
194
200
python -c 'import wx' &&
195
201
echo 'wxPython is available' ||
0 commit comments