8000 Update build environment · matplotlib/matplotlib@525b655 · GitHub
[go: up one dir, main page]

Skip to content

Commit 525b655

Browse files
committed
Update build environment
1 parent f8ab952 commit 525b655

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

.github/workflows/tests.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,23 @@ jobs:
4848
XVFB_RUN: xvfb-run -a
4949
- os: ubuntu-20.04
5050
python-version: '3.10'
51-
# Re-add this when extra dependencies have wheels.
51+
extra-requirements: '-r requirements/testing/extra.txt'
52+
XVFB_RUN: xvfb-run -a
53+
- os: ubuntu-20.04
54+
# python-version: '3.11.0-beta - 3.11'
55+
python-version: '3.11.0-beta.2'
5256
# extra-requirements: '-r requirements/testing/extra.txt'
5357
XVFB_RUN: xvfb-run -a
58+
- os: ubuntu-22.04
59+
python-version: '3.10'
60+
extra-requirements: '-r requirements/testing/extra.txt'
61+
XVFB_RUN: xvfb-run -a
5462
- os: macos-latest
5563
python-version: 3.8
5664
XVFB_RUN: ""
57-
65+
- os: macos-12
66+
python-version: 3.9
67+
XVFB_RUN: ""
5868
steps:
5969
- uses: actions/checkout@v3
6070
with:
@@ -109,6 +119,12 @@ jobs:
109119
if [[ "${{ matrix.os }}" = ubuntu-20.04 ]]; then
110120
sudo apt install -yy libopengl0
111121
fi
122+
if [[ "${{ matrix.os }}" = ubuntu-22.04 ]]; then
123+
sudo apt-get install -yy \
124+
gir1.2-gtk-4.0 \
125+
libgtk-4-bin \
126+
libgtk-4-common
127+
fi
112128
;;
113129
macOS)
114130
brew install ccache
@@ -168,7 +184,7 @@ jobs:
168184
169185
# Install optional dependencies from PyPI.
170186
# Sphinx is needed to run sphinxext tests
171-
python -m pip install --upgrade sphinx
187+
python -m pip install --upgrade sphinx sphinx-gallery
172188
173189
# GUI toolkits are pip-installable only for some versions of Python
174190
# so don't fail if we can't install them. Make it easier to check

lib/matplotlib/tests/test_backends_interactive.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,10 @@ def _test_number_of_draws_script():
512512
# copy_from_bbox only works when rendering to an ImageSurface
513513
param.marks.append(
514514
pytest.mark.skip("gtk3cairo does not support blitting"))
515+
elif backend == "gtk4cairo":
516+
# copy_from_bbox only works when rendering to an ImageSurface
517+
param.marks.append(
518+
pytest.mark.skip("gtk3cairo does not support blitting"))
515519
elif backend == "wx":
516520
param.marks.append(
517521
pytest.mark.skip("wx does not support blitting"))

0 commit comments

Comments
 (0)
0