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 3fb9c09

Browse filesBrowse files
authored
Merge pull request #29477 from QuLogic/arm-ci
ci: Add an ARM Linux test workflow
2 parents 3b54c6a + 89a3690 commit 3fb9c09
Copy full SHA for 3fb9c09

File tree

2 files changed

+17
-11
lines changed
Filter options

2 files changed

+17
-11
lines changed

‎.github/workflows/tests.yml

Copy file name to clipboardExpand all lines: .github/workflows/tests.yml
+11-8Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
# https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-2346
7979
pyside6-ver: '!=6.5.1'
8080
extra-requirements: '-r requirements/testing/extra.txt'
81-
- os: ubuntu-22.04
81+
- os: ubuntu-22.04-arm
8282
python-version: '3.12'
8383
# https://www.riverbankcomputing.com/pipermail/pyqt/2023-November/045606.html
8484
pyqt6-ver: '!=6.6.0'
@@ -282,10 +282,13 @@ jobs:
282282
echo 'PyGObject 3 is available' || echo 'PyGObject 3 is not available'
283283
)
284284
285-
python -mpip install --upgrade pyqt5${{ matrix.pyqt5-ver }} &&
286-
python -c 'import PyQt5.QtCore' &&
287-
echo 'PyQt5 is available' ||
288-
echo 'PyQt5 is not available'
285+
# PyQt5 does not have any wheels for ARM on Linux.
286+
if [[ "${{ matrix.os }}" != 'ubuntu-22.04-arm' ]]; then
287+
python -mpip install --upgrade --only-binary :all: pyqt5${{ matrix.pyqt5-ver }} &&
288+
python -c 'import PyQt5.QtCore' &&
289+
echo 'PyQt5 is available' ||
290+
echo 'PyQt5 is not available'
291+
fi
289292
# Even though PySide2 wheels can be installed on Python 3.12+, they are broken and since PySide2 is
290293
# deprecated, they are unlikely to be fixed. For the same deprecation reason, there are no wheels
291294
# on M1 macOS, so don't bother there either.
@@ -296,16 +299,16 @@ jobs:
296299
echo 'PySide2 is available' ||
297300
echo 'PySide2 is not available'
298301
fi
299-
python -mpip install --upgrade pyqt6${{ matrix.pyqt6-ver }} &&
302+
python -mpip install --upgrade --only-binary :all: pyqt6${{ matrix.pyqt6-ver }} &&
300303
python -c 'import PyQt6.QtCore' &&
301304
echo 'PyQt6 is available' ||
302305
echo 'PyQt6 is not available'
303-
python -mpip install --upgrade pyside6${{ matrix.pyside6-ver }} &&
306+
python -mpip install --upgrade --only-binary :all: pyside6${{ matrix.pyside6-ver }} &&
304307
python -c 'import PySide6.QtCore' &&
305308
echo 'PySide6 is available' ||
306309
echo 'PySide6 is not available'
307310
308-
python -mpip install --upgrade \
311+
python -mpip install --upgrade --only-binary :all: \
309312
-f "https://extras.wxpython.org/wxPython4/extras/linux/gtk3/${{ matrix.os }}" \
310313
wxPython &&
311314
python -c 'import wx' &&

‎lib/matplotlib/tests/test_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_axes.py
+6-3Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,7 +1454,8 @@ def test_pcolormesh_small():
14541454

14551455

14561456
@image_comparison(['pcolormesh_alpha'], extensions=["png", "pdf"],
1457-
remove_text=True)
1457+
remove_text=True,
1458+
tol=0.2 if platform.machine() == "aarch64" else 0)
14581459
def test_pcolormesh_alpha():
14591460
# Remove this line when this test image is regenerated.
14601461
plt.rcParams['pcolormesh.snap'] = False
@@ -9162,8 +9163,10 @@ def test_zorder_and_explicit_rasterization():
91629163
fig.savefig(b, format='pdf')
91639164

91649165

9165-
@image_comparison(["preset_clip_paths.png"], remove_text=True, style="mpl20",
9166-
tol=0.027 if platform.machine() in ("arm64", "ppc64le") else 0)
9166+
@image_comparison(
9167+
["preset_clip_paths.png"],
9168+
remove_text=True, style="mpl20",
9169+
tol=0.027 if platform.machine() in ("aarch64", "arm64", "ppc64le") else 0)
91679170
def test_preset_clip_paths():
91689171
fig, ax = plt.subplots()
91699172

0 commit comments

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