|
58 | 58 | python-version: '3.11' |
59 | 59 | - os: macos-latest |
60 | 60 | python-version: 3.8 |
| 61 | + extra-requirements: '-r requirements/testing/extra.txt' |
61 | 62 |
|
62 | 63 | steps: |
63 | 64 | - uses: actions/checkout@v3 |
@@ -118,6 +119,8 @@ jobs: |
118 | 119 | brew install ccache |
119 | 120 | brew tap homebrew/cask-fonts |
120 | 121 | brew install font-noto-sans-cjk |
| 122 | + brew install --cask inkscape |
| 123 | + brew install gtk+3 gobject-introspection |
121 | 124 | ;; |
122 | 125 | esac |
123 | 126 |
|
@@ -185,44 +188,46 @@ jobs: |
185 | 188 | # (sometimes, the install appears to be successful but shared |
186 | 189 | # libraries cannot be loaded at runtime, so an actual import is a |
187 | 190 | # better check). |
188 | | - # PyGObject, pycairo, and cariocffi do not install on OSX 10.12. |
189 | | - python -m pip install --upgrade pycairo 'cairocffi>=0.8' PyGObject && |
| 191 | + python -m pip install --upgrade pycairo 'cairocffi>=0.8' && |
| 192 | + echo 'Cairo is available' || |
| 193 | + echo 'Cairo is not available' |
| 194 | +
|
| 195 | + # PyGObject does not install on OSX 11.6. |
| 196 | + python -m pip install --upgrade PyGObject && |
190 | 197 | python -c 'import gi; gi.require_version("Gtk", "3.0"); from gi.repository import Gtk' && |
191 | 198 | echo 'PyGObject is available' || |
192 | 199 | echo 'PyGObject is not available' |
193 | 200 |
|
194 | | - # There are no functioning wheels available for OSX 10.12 (as of |
195 | | - # Sept 2020) for either pyqt5 (there are only wheels for 10.13+) or |
196 | | - # pyside2 (the latest version (5.13.2) with 10.12 wheels has a |
197 | | - # fatal to us bug, it was fixed in 5.14.0 which has 10.13 wheels) |
198 | 201 | python -mpip install --upgrade pyqt5${{ matrix.pyqt5-ver }} && |
199 | 202 | python -c 'import PyQt5.QtCore' && |
200 | 203 | echo 'PyQt5 is available' || |
201 | 204 | echo 'PyQt5 is not available' |
| 205 | + python -mpip install --upgrade pyqt6${{ matrix.pyqt6-ver }} && |
| 206 | + python -c 'import PyQt6.QtCore' && |
| 207 | + echo 'PyQt6 is available' || |
| 208 | + echo 'PyQt6 is not available' |
| 209 | + python -mpip install --upgrade pyside2${{ matrix.pyside2-ver }} && |
| 210 | + python -c 'import PySide2.QtCore' && |
| 211 | + echo 'PySide2 is available' || |
| 212 | + echo 'PySide2 is not available' |
| 213 | + python -mpip install --upgrade pyside6${{ matrix.pyside6-ver }} && |
| 214 | + python -c 'import PySide6.QtCore' && |
| 215 | + echo 'PySide6 is available' || |
| 216 | + echo 'PySide6 is not available' |
| 217 | +
|
| 218 | + # No linux wheels in pypi, no working wheels for OSX |
202 | 219 | if [[ "${{ runner.os }}" != 'macOS' ]]; then |
203 | | - python -mpip install --upgrade pyside2${{ matrix.pyside2-ver }} && |
204 | | - python -c 'import PySide2.QtCore' && |
205 | | - echo 'PySide2 is available' || |
206 | | - echo 'PySide2 is not available' |
| 220 | + python -mpip install --upgrade \ |
| 221 | + -f "https://extras.wxpython.org/wxPython4/extras/linux/gtk3/${{ matrix.os }}" \ |
| 222 | + wxPython && |
| 223 | + python -c 'import wx' && |
| 224 | + echo 'wxPython is available' || |
| 225 | + echo 'wxPython is not available' |
207 | 226 | fi |
208 | | - if [[ "${{ matrix.os }}" = ubuntu-20.04 ]]; then |
209 | | - python -mpip install --upgrade pyqt6${{ matrix.pyqt6-ver }} && |
210 | | - python -c 'import PyQt6.QtCore' && |
211 | | - echo 'PyQt6 is available' || |
212 | | - echo 'PyQt6 is not available' |
213 | | - python -mpip install --upgrade pyside6${{ matrix.pyside6-ver }} && |
214 | | - python -c 'import PySide6.QtCore' && |
215 | | - echo 'PySide6 is available' || |
216 | | - echo 'PySide6 is not available' |
| 227 | + if [[ "${{ runner.os }}" == 'macOS' ]]; then |
| 228 | + echo 'wxPython is not available' |
217 | 229 | fi |
218 | 230 |
|
219 | | - python -mpip install --upgrade \ |
220 | | - -f "https://extras.wxpython.org/wxPython4/extras/linux/gtk3/${{ matrix.os }}" \ |
221 | | - wxPython && |
222 | | - python -c 'import wx' && |
223 | | - echo 'wxPython is available' || |
224 | | - echo 'wxPython is not available' |
225 | | -
|
226 | 231 | - name: Install the nightly dependencies |
227 | 232 | # Only install the nightly dependencies during the scheduled event |
228 | 233 | if: ${{ github.event_name == 'schedule' && matrix.name-suffix != '(Minimum Versions)' }} |
|
0 commit comments