Skip to content

Commit 3f186da

Browse files
ci: add downstream tests for marimo (#1166)
1 parent 1441119 commit 3f186da

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.github/workflows/downstream_tests.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,64 @@ jobs:
5050
cd altair
5151
mypy altair tests
5252
53+
marimo:
54+
strategy:
55+
matrix:
56+
python-version: ["3.12"]
57+
os: [ubuntu-latest]
58+
dependencies: ["core", "core,optional"]
59+
60+
runs-on: ${{ matrix.os }}
61+
steps:
62+
- uses: actions/checkout@v4
63+
- uses: actions/setup-python@v5
64+
with:
65+
python-version: ${{ matrix.python-version }}
66+
- name: Install uv
67+
uses: astral-sh/setup-uv@v3
68+
with:
69+
enable-cache: "true"
70+
cache-suffix: ${{ matrix.python-version }}
71+
cache-dependency-glob: "**requirements*.txt"
72+
- name: clone-marimo
73+
run: |
74+
git clone https://github.com/marimo-team/marimo.git --depth=1
75+
cd marimo
76+
git log
77+
- name: install-basics
78+
run: uv pip install --upgrade tox virtualenv setuptools hatch --system
79+
- name: install-marimo-dev
80+
run: |
81+
cd marimo
82+
uv pip install -e ".[dev]" --system
83+
- name: install-narwhals-dev
84+
run: |
85+
uv pip uninstall narwhals --system
86+
uv pip install -e . --system
87+
- name: show-deps
88+
run: uv pip freeze
89+
- name: Create assets directory, copy over index.html
90+
run: |
91+
mkdir -p marimo/marimo/_static/assets
92+
cp marimo/frontend/index.html marimo/marimo/_static/index.html
93+
cp marimo/frontend/public/favicon.ico marimo/marimo/_static/favicon.ico
94+
- name: Run tests with minimal dependencies
95+
if: ${{ matrix.dependencies == 'core' }}
96+
run: |
97+
cd marimo
98+
hatch run +py=${{ matrix.python-version }} test:test -v tests/ -k "not test_cli"
99+
timeout-minutes: 15
100+
- name: Run tests with optional dependencies
101+
if: ${{ matrix.dependencies == 'core,optional' }}
102+
run: |
103+
cd marimo
104+
hatch run +py=${{ matrix.python-version }} test-optional:test -v tests/ -k "not test_cli"
105+
timeout-minutes: 15
106+
- name: Run typechecks
107+
run: |
108+
cd marimo
109+
hatch run typecheck:check
110+
53111
scikit-lego:
54112
strategy:
55113
matrix:

0 commit comments

Comments
 (0)