| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -50,6 +50,7 @@ jobs: | |||
| 50 | 50 | extra-requirements: '-r requirements/testing/extra.txt' | |
| 51 | 51 | - os: macos-latest | |
| 52 | 52 | python-version: 3.8 | |
| 53 | + extra-requirements: '-r requirements/testing/extra.txt' | ||
| 53 | 54 | ||
| 54 | 55 | steps: | |
| 55 | 56 | - uses: actions/checkout@v3 | |
@@ -110,6 +111,7 @@ jobs: | |||
| 110 | 111 | brew install ccache | |
| 111 | 112 | brew tap homebrew/cask-fonts | |
| 112 | 113 | brew install font-noto-sans-cjk-sc | |
| 114 | + brew install --cask inkscape | ||
| 113 | 115 | ;; | |
| 114 | 116 | esac | |
| 115 | 117 | ||
@@ -172,36 +174,28 @@ jobs: | |||
| 172 | 174 | # (sometimes, the install appears to be successful but shared | |
| 173 | 175 | # libraries cannot be loaded at runtime, so an actual import is a | |
| 174 | 176 | # better check). | |
| 175 | - # PyGObject, pycairo, and cariocffi do not install on OSX 10.12. | ||
| 176 | - python -m pip install --upgrade pycairo 'cairocffi>=0.8' PyGObject && | ||
| 177 | + python -m pip install --upgrade pycairo 'cairocffi>=0.8' && | ||
| 178 | + echo 'Cairo is available' || | ||
| 179 | + echo 'Cairo is not available' | ||
| 180 | + | ||
| 181 | + # PyGObject does not install on OSX 11.6. | ||
| 182 | + python -m pip install --upgrade PyGObject && | ||
| 177 | 183 | python -c 'import gi; gi.require_version("Gtk", "3.0"); from gi.repository import Gtk' && | |
| 178 | 184 | echo 'PyGObject is available' || | |
| 179 | 185 | echo 'PyGObject is not available' | |
| 180 | 186 | ||
| 181 | - # There are no functioning wheels available for OSX 10.12 (as of | ||
| 182 | - # Sept 2020) for either pyqt5 (there are only wheels for 10.13+) or | ||
| 183 | - # pyside2 (the latest version (5.13.2) with 10.12 wheels has a | ||
| 184 | - # fatal to us bug, it was fixed in 5.14.0 which has 10.13 wheels) | ||
| 185 | 187 | python -mpip install --upgrade pyqt5${{ matrix.pyqt5-ver }} && | |
| 186 | 188 | python -c 'import PyQt5.QtCore' && | |
| 187 | 189 | echo 'PyQt5 is available' || | |
| 188 | 190 | echo 'PyQt5 is not available' | |
| 189 | - if [[ "${{ runner.os }}" != 'macOS' ]]; then | ||
| 190 | - python -mpip install --upgrade pyside2 && | ||
| 191 | - python -c 'import PySide2.QtCore' && | ||
| 192 | - echo 'PySide2 is available' || | ||
| 193 | - echo 'PySide2 is not available' | ||
| 194 | - fi | ||
| 195 | - if [[ "${{ matrix.os }}" = ubuntu-20.04 ]]; then | ||
| 196 | - python -mpip install --upgrade pyqt6 && | ||
| 197 | - python -c 'import PyQt6.QtCore' && | ||
| 198 | - echo 'PyQt6 is available' || | ||
| 199 | - echo 'PyQt6 is not available' | ||
| 200 | - python -mpip install --upgrade pyside6 && | ||
| 201 | - python -c 'import PySide6.QtCore' && | ||
| 202 | - echo 'PySide6 is available' || | ||
| 203 | - echo 'PySide6 is not available' | ||
| 204 | - fi | ||
| 191 | + python -mpip install --upgrade pyqt6 && | ||
| 192 | + python -c 'import PyQt6.QtCore' && | ||
| 193 | + echo 'PyQt6 is available' || | ||
| 194 | + echo 'PyQt6 is not available' | ||
| 195 | + python -mpip install --upgrade pyside6 && | ||
| 196 | + python -c 'import PySide6.QtCore' && | ||
| 197 | + echo 'PySide6 is available' || | ||
| 198 | + echo 'PySide6 is not available' | ||
| 205 | 199 | ||
| 206 | 200 | python -mpip install --upgrade \ | |
| 207 | 201 | -f "https://extras.wxpython.org/wxPython4/extras/linux/gtk3/${{ matrix.os }}" \ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -46,4 +46,4 @@ def _checkdep_usetex(): | |||
| 46 | 46 | reason='xelatex + pgf is required') | |
| 47 | 47 | needs_usetex = pytest.mark.skipif( | |
| 48 | 48 | not _checkdep_usetex(), | |
| 49 | - reason="This test needs a TeX installation") | ||
| 49 | + reason="This test needs a TeX installation with dvipng and ghostscript") | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -114,6 +114,7 @@ def interrupter(): | |||
| 114 | 114 | print('SUCCESS', flush=True) | |
| 115 | 115 | ||
| 116 | 116 | ||
| 117 | + @pytest.mark.skipif(sys.platform == 'darwin', reason="Does not work on darwin") | ||
| 117 | 118 | @pytest.mark.backend('QtAgg', skip_on_importerror=True) | |
| 118 | 119 | @pytest.mark.parametrize("target, kwargs", [ | |
| 119 | 120 | ('show', {'block': True}), | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -75,6 +75,7 @@ def test_bold_font_output(): | |||
| 75 | 75 | ax.set_title('bold-title', fontweight='bold') | |
| 76 | 76 | ||
| 77 | 77 | ||
| 78 | + @pytest.mark.xfail('Fails on OSX') | ||
| 78 | 79 | @image_comparison(['bold_font_output_with_none_fonttype.svg']) | |
| 79 | 80 | def test_bold_font_output_with_none_fonttype(): | |
| 80 | 81 | plt.rcParams['svg.fonttype'] = 'none' | |
| Back | FazBrowse Home | New Git URL |
0 commit comments