@@ -22,18 +22,18 @@ jobs:
22
22
matrix :
23
23
include :
24
24
- name-suffix : " (Minimum Versions)"
25
- os : ubuntu-16 .04
25
+ os : ubuntu-18 .04
26
26
python-version : 3.7
27
27
extra-requirements : ' -c requirements/testing/minver.txt'
28
28
pyqt5-ver : ' ==5.8 sip==4.19.7' # oldest versions with a Py3.7 wheel.
29
29
delete-font-cache : true
30
30
XVFB_RUN : xvfb-run -a
31
- - os : ubuntu-16 .04
31
+ - os : ubuntu-18 .04
32
32
python-version : 3.7
33
33
extra-requirements : ' -r requirements/testing/extra.txt'
34
34
XVFB_RUN : xvfb-run -a
35
35
CFLAGS : " -fno-lto" # Ensure that disabling LTO works.
36
- - os : ubuntu-16 .04
36
+ - os : ubuntu-18 .04
37
37
python-version : 3.8
38
38
extra-requirements : ' -r requirements/testing/extra.txt'
39
39
XVFB_RUN : xvfb-run -a
@@ -128,10 +128,10 @@ jobs:
128
128
~/.cache/matplotlib
129
129
!~/.cache/matplotlib/tex.cache
130
130
!~/.cache/matplotlib/test_cache
131
- key : ${{ runner.os }}-py${{ matrix.python-version }}-mpl-${{ github.ref }}-${{ github.sha }}
131
+ key : 1- ${{ runner.os }}-py${{ matrix.python-version }}-mpl-${{ github.ref }}-${{ github.sha }}
132
132
restore-keys : |
133
- ${{ runner.os }}-py${{ matrix.python-version }}-mpl-${{ github.ref }}-
134
- ${{ runner.os }}-py${{ matrix.python-version }}-mpl-
133
+ 1- ${{ runner.os }}-py${{ matrix.python-version }}-mpl-${{ github.ref }}-
134
+ 1- ${{ runner.os }}-py${{ matrix.python-version }}-mpl-
135
135
136
136
- name : Install Python dependencies
137
137
run : |
@@ -156,12 +156,8 @@ jobs:
156
156
# libraries cannot be loaded at runtime, so an actual import is a
157
157
# better check).
158
158
if [[ "${{ runner.os }}" != 'macOS' ]]; then
159
- # PyGObject, pycairo, and cariocffi do not install on OSX 10.12;
160
- # pycairo 1.20+ requires a new version of Cairo, unavailable on
161
- # Ubuntu 16.04, so PyGObject must be installed without build
162
- # isolation in order to pick up the lower pre-installed version.
163
- python -m pip install --upgrade 'pycairo<1.20.0' 'cairocffi>=0.8' &&
164
- python -m pip install --upgrade --no-build-isolation PyGObject &&
159
+ # PyGObject, pycairo, and cariocffi do not install on OSX 10.12.
160
+ python -m pip install --upgrade pycairo 'cairocffi>=0.8' PyGObject &&
165
161
python -c 'import gi; gi.require_version("Gtk", "3.0"); from gi.repository import Gtk' &&
166
162
echo 'PyGObject is available' ||
167
163
echo 'PyGObject is not available'
@@ -180,7 +176,7 @@ jobs:
180
176
echo 'PySide2 is not available'
181
177
fi
182
178
python -m pip install --upgrade \
183
- -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-16 .04 \
179
+ -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-18 .04 \
184
180
wxPython &&
185
181
python -c 'import wx' &&
186
182
echo 'wxPython is available' ||
@@ -226,3 +222,9 @@ jobs:
226
222
if : ${{ runner.os != 'macOS' }}
227
223
- name : Upload code coverage
228
224
uses : codecov/codecov-action@v1
225
+
226
+ - uses : actions/upload-artifact@v2
227
+ if : failure()
228
+ with :
229
+ name : " ${{ matrix.python-version }} ${{ matrix.os }} ${{ matrix.name-suffix }} result images"
230
+ path : ./result_images
0 commit comments