Skip to content

Run matplotlylib tests in CI - #5794

Open
robertoffmoura wants to merge 2 commits into
plotly:mainfrom
robertoffmoura:rm/add-matplotlylib-tests-to-CI
Open

robertoffmoura wants to merge 2 commits into
plotly:mainfrom
robertoffmoura:rm/add-matplotlylib-tests-to-CI

Conversation

@robertoffmoura

Copy link
Copy Markdown
Contributor

This is a follow up to #5697. It adds a dedicated test-matplotlylib job to run-pytest.yml that installs matplotlib and runs the tests across all supported Python versions (3.8–3.13)

Historically, the original matplotlylib tests (in tests/test_optional/test_matplotlylib/) were intentionally skipped in 2022 (b7ba00b) because they were failing. When the test_renderer suite (plotly/matplotlylib/tests/test_renderer.py) was added (#5312), it was unintentionally never wired into run-pytest.yml.

@camdecoster camdecoster left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for putting this together! Could you please make a few minor changes?

Comment thread CHANGELOG.md

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please drop this update from the PR? Since the change isn't user facing, I don't think the entry is necessary.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please update the action versions to the latest available?

Comment on lines +187 to +188
uv sync --extra dev_core
uv pip install matplotlib

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to pin the version of matplotlib using the lock file. Could you add a new entry in pyproject.toml under project.optional-dependencies called dev_matplotlib? Then we can reference that in the CI workflow.

dev_matplotlib = [
    "plotly[dev_core]",
    "matplotlib",
]
Suggested change
uv sync --extra dev_core
uv pip install matplotlib
uv lock --check
uv sync --locked --extra dev_matplotlib

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants