Skip to content

Commit d5aa778

Browse files
authored
ci: add plotly to downstream tests (#1376)
* ci: add plotly to downstream tests * rm core, incompatible and redundant
1 parent bbf2aa3 commit d5aa778

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/downstream_tests.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,3 +232,43 @@ jobs:
232232
run: |
233233
cd tubular
234234
pytest tests --config-file=pyproject.toml
235+
236+
plotly:
237+
strategy:
238+
matrix:
239+
python-version: ["3.12"]
240+
os: [ubuntu-latest]
241+
242+
runs-on: ${{ matrix.os }}
243+
steps:
244+
- uses: actions/checkout@v4
245+
- uses: actions/setup-python@v5
246+
with:
247+
python-version: ${{ matrix.python-version }}
248+
- name: Install uv
249+
uses: astral-sh/setup-uv@v3
250+
with:
251+
enable-cache: "true"
252+
cache-suffix: ${{ matrix.python-version }}
253+
cache-dependency-glob: "**requirements*.txt"
254+
- name: clone-plotly
255+
run: |
256+
git clone https://github.com/plotly/plotly.py --depth=1
257+
cd plotly.py
258+
git log
259+
- name: install-basics
260+
run: uv pip install --upgrade tox virtualenv setuptools --system
261+
- name: install-deps
262+
run: |
263+
cd plotly.py
264+
uv pip install -r packages/python/plotly/test_requirements/requirements_312_optional.txt --system
265+
- name: install-narwhals-dev
266+
run: |
267+
uv pip uninstall narwhals --system
268+
uv pip install -e . --system
269+
- name: show-deps
270+
run: uv pip freeze
271+
- name: Run pytest on plotly express
272+
run: |
273+
cd plotly.py
274+
pytest packages/python/plotly/plotly/tests/test_optional/test_px

0 commit comments

Comments
 (0)