🌐 AI搜索 & 代理 主页
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ jobs:
extra-requirements: '-r requirements/testing/extra.txt'
# https://github.com/matplotlib/matplotlib/issues/29844
pygobject-ver: '<3.52.0'
- os: ubuntu-22.04-arm
python-version: '3.12'
# https://github.com/matplotlib/matplotlib/issues/29844
pygobject-ver: '<3.52.0'
- name-suffix: "(Extra TeX packages)"
os: ubuntu-22.04
python-version: '3.13'
Expand All @@ -77,6 +73,8 @@ jobs:
pygobject-ver: '<3.52.0'
- os: ubuntu-24.04
python-version: '3.12'
- os: ubuntu-24.04-arm
python-version: '3.12'
- os: macos-14 # This runner is on M1 (arm64) chips.
python-version: '3.11'
# https://github.com/matplotlib/matplotlib/issues/29732
Expand Down Expand Up @@ -150,7 +148,7 @@ jobs:
if [[ "${{ matrix.name-suffix }}" != '(Minimum Versions)' ]]; then
sudo apt-get install -yy --no-install-recommends ffmpeg poppler-utils
fi
if [[ "${{ matrix.os }}" = ubuntu-22.04 || "${{ matrix.os }}" = ubuntu-22.04-arm ]]; then
if [[ "${{ matrix.os }}" = ubuntu-22.04 ]]; then
sudo apt-get install -yy --no-install-recommends \
gir1.2-gtk-4.0 \
libgirepository1.0-dev
Expand Down Expand Up @@ -257,7 +255,7 @@ jobs:
)

# PyQt5 does not have any wheels for ARM on Linux.
if [[ "${{ matrix.os }}" != 'ubuntu-22.04-arm' ]]; then
if [[ "${{ matrix.os }}" != 'ubuntu-24.04-arm' ]]; then
python -mpip install --upgrade --only-binary :all: pyqt5 &&
python -c 'import PyQt5.QtCore' &&
echo 'PyQt5 is available' ||
Expand Down Expand Up @@ -372,7 +370,7 @@ jobs:
run: |
if [[ "${{ runner.os }}" != 'macOS' ]]; then
LCOV_IGNORE_ERRORS=',' # do not ignore any lcov errors by default
if [[ "${{ matrix.os }}" = ubuntu-24.04 ]]; then
if [[ "${{ matrix.os }}" = ubuntu-24.04 || "${{ matrix.os }}" = ubuntu-24.04-arm ]]; then
# filter mismatch and unused-entity errors detected by lcov 2.x
LCOV_IGNORE_ERRORS='mismatch,unused'
fi
Expand Down
5 changes: 3 additions & 2 deletions lib/matplotlib/tests/test_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1382,7 +1382,8 @@ def test_pcolorargs_5205():
plt.pcolor(X, Y, list(Z[:-1, :-1]))


@image_comparison(['pcolormesh'], remove_text=True)
@image_comparison(['pcolormesh'], remove_text=True,
tol=0.11 if platform.machine() == 'aarch64' else 0)
def test_pcolormesh():
# Remove this line when this test image is regenerated.
plt.rcParams['pcolormesh.snap'] = False
Expand Down Expand Up @@ -1434,7 +1435,7 @@ def test_pcolormesh_small():

@image_comparison(['pcolormesh_alpha'], extensions=["png", "pdf"],
remove_text=True,
tol=0.2 if platform.machine() == "aarch64" else 0)
tol=0.4 if platform.machine() == "aarch64" else 0)
def test_pcolormesh_alpha():
# Remove this line when this test image is regenerated.
plt.rcParams['pcolormesh.snap'] = False
Expand Down
Loading