Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 436713a

Browse filesBrowse files
committed
Test with Python 3.12
1 parent 0ac170b commit 436713a
Copy full SHA for 436713a

File tree

2 files changed

+19
-4
lines changed
Filter options

2 files changed

+19
-4
lines changed

‎.github/workflows/tests.yml

Copy file name to clipboardExpand all lines: .github/workflows/tests.yml
+13-4Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ jobs:
5656
pyside2-ver: '==5.15.1' # oldest version with working Py3.9 wheel.
5757
pyside6-ver: '==6.0.0'
5858
delete-font-cache: true
59+
no-build-isolation: true
5960
- os: ubuntu-20.04
6061
python-version: 3.9
6162
extra-requirements: '-r requirements/testing/extra.txt'
@@ -76,6 +77,11 @@ jobs:
7677
# https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-2346
7778
pyside6-ver: '!=6.5.1'
7879
extra-requirements: '-r requirements/testing/extra.txt'
80+
- os: ubuntu-22.04
81+
python-version: '3.12-dev'
82+
pyside6-ver: '!=6.5.1'
83+
pre: true
84+
no-build-isolation: true
7985
- os: macos-latest
8086
python-version: 3.9
8187
# https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-2346
@@ -191,8 +197,10 @@ jobs:
191197
python -m pip install --upgrade pip setuptools wheel
192198
193199
# Install pre-release versions during our weekly upcoming dependency tests.
200+
# Also install for 3.12 to get working NumPy (remove when 1.26 is released)
194201
if [[ "${{ github.event_name == 'schedule' &&
195-
matrix.name-suffix != '(Minimum Versions)' }}" = "true" ]]; then
202+
matrix.name-suffix != '(Minimum Versions)' }}" = "true"
203+
|| "${{ matrix.pre }}" = "true" ]]; then
196204
PRE="--pre"
197205
fi
198206
@@ -204,7 +212,7 @@ jobs:
204212
${{ matrix.extra-requirements }}
205213
206214
# Preinstall pybind11 on no-build-isolation builds.
207-
if [[ "${{ matrix.name-suffix }}" == '(Minimum Versions)' ]]; then
215+
if [[ "${{ matrix.no-build-isolation }}" == 'true' ]]; then
208216
python -m pip install 'pybind11>=2.6'
209217
fi
210218
@@ -232,7 +240,8 @@ jobs:
232240
python -c 'import PyQt5.QtCore' &&
233241
echo 'PyQt5 is available' ||
234242
echo 'PyQt5 is not available'
235-
if [[ "${{ runner.os }}" != 'macOS' ]]; then
243+
if [[ "${{ runner.os }}" != 'macOS'
244+
&& "${{ matrix.python-version != '3.12-dev'}}" = "true" ]]; then
236245
python -mpip install --upgrade pyside2${{ matrix.pyside2-ver }} &&
237246
python -c 'import PySide2.QtCore' &&
238247
echo 'PySide2 is available' ||
@@ -289,7 +298,7 @@ jobs:
289298
290299
cat mplsetup.cfg
291300
292-
if [[ "${{ matrix.name-suffix }}" == '(Minimum Versions)' ]]; then
301+
if [[ "${{ matrix.no-build-isolation }}" == 'true' ]]; then
293302
# Minimum versions run does not use build isolation so that it
294303
# builds against the pre-installed minver dependencies.
295304
python -m pip install --no-deps --no-build-isolation -ve .

‎lib/matplotlib/tests/test_agg.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_agg.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,9 @@ def test_pil_kwargs_tiff():
250250

251251

252252
def test_pil_kwargs_webp():
253+
Image.init()
254+
if "WEBP" not in Image.SAVE:
255+
pytest.skip("No WEBP support")
253256
plt.plot([0, 1, 2], [0, 1, 0])
254257
buf_small = io.BytesIO()
255258
pil_kwargs_low = {"quality": 1}
@@ -263,6 +266,9 @@ def test_pil_kwargs_webp():
263266

264267

265268
def test_webp_alpha():
269+
Image.init()
270+
if "WEBP" not in Image.SAVE:
271+
pytest.skip("No WEBP support")
266272
plt.plot([0, 1, 2], [0, 1, 0])
267273
buf = io.BytesIO()
268274
plt.savefig(buf, format="webp", transparent=True)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.