Skip to content

Commit bf290b2

Browse files
Run matplotlylib tests in CI
1 parent 9ba9474 commit bf290b2

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
@@ -164,3 +164,30 @@ jobs:
164164
run: |
165165
source .venv/bin/activate
166166
python -m pytest tests/test_optional/test_kaleido/test_kaleido_v0_error.py
167+
168+
test-matplotlylib:
169+
name: Matplotlylib tests (Python ${{ matrix.python-version }})
170+
runs-on: ubuntu-latest
171+
strategy:
172+
fail-fast: false
173+
matrix:
174+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
175+
steps:
176+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
177+
- name: Set up Python
178+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
179+
with:
180+
python-version: ${{ matrix.python-version }}
181+
- name: Set up uv
182+
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
183+
- name: Install dependencies
184+
run: |
185+
uv venv
186+
source .venv/bin/activate
187+
uv sync --extra dev_core
188+
uv pip install matplotlib
189+
python --version
190+
- name: Test matplotlylib
191+
run: |
192+
source .venv/bin/activate
193+
python -m pytest plotly/matplotlylib/tests plotly/matplotlylib/mplexporter/tests

0 commit comments

Comments
 (0)