10000 ci: Add a Python 3.9 / Ubuntu 20.04 test run. · matplotlib/matplotlib@7efb12e · GitHub
[go: up one dir, main page]

Skip to content

Commit 7efb12e

Browse files
committed
ci: Add a Python 3.9 / Ubuntu 20.04 test run.
1 parent 772e382 commit 7efb12e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ jobs:
3737
python-version: 3.8
3838
extra-requirements: '-r requirements/testing/extra.txt'
3939
XVFB_RUN: xvfb-run -a
40+
- os: ubuntu-20.04
41+
python-version: 3.9
42+
extra-requirements: '-r requirements/testing/extra.txt'
43+
XVFB_RUN: xvfb-run -a
4044
- os: macos-latest
4145
python-version: 3.8
4246
XVFB_RUN: ""
@@ -176,7 +180,7 @@ jobs:
176180
echo 'PySide2 is not available'
177181
fi
178182
python -m pip install --upgrade \
179-
-f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-18.04 \
183+
-f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-$(lsb_release -r -s) \
180184
wxPython &&
181185
python -c 'import wx' &&
182186
echo 'wxPython is available' ||
@@ -190,7 +194,11 @@ jobs:
190194
# Set flag in a delayed manner to avoid issues with installing other
191195
# packages
192196
if [[ "${{ runner.os }}" != 'macOS' ]]; then
193-
export CPPFLAGS=--coverage
197+
if [[ "$(lsb_release -r -s)" == "20.04" ]]; then
198+
export CPPFLAGS='--coverage -fprofile-abs-path'
199+
else
200+
export CPPFLAGS='--coverage'
201+
fi
194202
fi
195203
196204
# All dependencies must have been pre-installed, so that the minver

0 commit comments

Comments
 (0)
0