Skip to content
Closed
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
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/" # Location of your workflow files
schedule:
interval: "weekly" # Options: daily, weekly, monthly
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: build
permissions:
contents: read

on: [push, pull_request]

Expand All @@ -12,6 +14,8 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
Expand Down
9 changes: 9 additions & 0 deletions run-mpl-test-suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ def _raise_on_image_difference(expected, actual, tol):
mplcairo.base.GraphicsContextRendererCairo
mpl.backends.backend_agg = \
sys.modules["matplotlib.backends.backend_agg"] = mplcairo.base
mpl.backend_bases._default_backends = {
k: "mplcairo.base" for k in mpl.backend_bases._default_backends}

with warnings.catch_warnings(record=True): # mpl 3.0
mpl.use("agg", force=True)
Expand Down Expand Up @@ -165,6 +167,9 @@ def pytest_collection_modifyitems(session, config, items):
"test_backend_ps.py::test_colorbar_shift[",
# cairo doesn't support setting fonttype.
"test_backend_ps.py::test_fonttype[",
# FIXME[Upstream]: Test is not precise enough re: name reuse
# due to cairo's font subsetting approach.
"test_backend_ps.py::test_no_duplicate_definition",
# We're fine with partial usetex.
"test_backend_ps.py::test_partial_usetex",
# We do not support writing PS to text-mode streams.
Expand Down Expand Up @@ -194,12 +199,16 @@ def pytest_collection_modifyitems(session, config, items):
"test_backend_svg.py::test_svg_incorrect_metadata[",
"test_backend_svg.py::test_svg_metadata",
"test_backend_svg.py::test_svgid",
"test_figure.py::test_not_visible_figure",
# cairo always emits text as glyph paths.
"test_backend_svg.py::test_svgnone_with_data_coordinates",
# cairo can't emit urls in SVG.
"test_backend_svg.py::test_text_urls",
"test_backend_svg.py::test_url",
"test_backend_svg.py::test_url_tick",
# cairo elides fully-clipped artists
# FIXME[Upstream]: clip paths in test should be fixed.
"test_backend_svg.py::test_clip_path_ids_reuse",
# Different tight bbox.
"test_bbox_tight.py::test_bbox_inches_tight_suptile_legend[",
"test_bbox_tight.py::test_bbox_inches_tight_suptitle_non_default[",
Expand Down
Loading