Skip to content

Commit 495037c

Browse files
Run matplotlylib tests in CI
1 parent a9fe7fa commit 495037c

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

‎.github/workflows/run-pytest.yml‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,30 @@ jobs:
161161
run: |
162162
source .venv/bin/activate
163163
python -m pytest tests/test_optional/test_kaleido/test_kaleido_v0_error.py
164+
165+
test-matplotlylib:
166+
name: Matplotlylib tests (Python ${{ matrix.python-version }})
167+
runs-on: ubuntu-latest
168+
strategy:
169+
fail-fast: false
170+
matrix:
171+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
172+
steps:
173+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
174+
- name: Set up Python
175+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
176+
with:
177+
python-version: ${{ matrix.python-version }}
178+
- name: Set up uv
179+
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
180+
- name: Install dependencies
181+
run: |
182+
uv venv
183+
source .venv/bin/activate
184+
uv sync --extra dev_core
185+
uv pip install matplotlib
186+
python --version
187+
- name: Test matplotlylib
188+
run: |
189+
source .venv/bin/activate
190+
python -m pytest plotly/matplotlylib/tests plotly/matplotlylib/mplexporter/tests

0 commit comments

Comments
 (0)