File tree Expand file tree Collapse file tree 5 files changed +41
-19
lines changed
Expand file tree Collapse file tree 5 files changed +41
-19
lines changed Original file line number Diff line number Diff line change 1+ name : Tests
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request : {}
7+
8+ jobs :
9+ typos :
10+ name : Test notebooks
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : 🛑 Cancel Previous Runs
14+ uses : styfle/cancel-workflow-action@0.12.1
15+ - name : 🐍 Setup uv
16+ uses : yezz123/setup-uv@v4
17+ - name : Run tests
18+ run : |
19+ uvx --with marimo pytest -v
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -22,3 +22,10 @@ repos:
2222 rev : dictgen-v0.3.1
2323 hooks :
2424 - id : typos
25+
26+ - repo : https://github.com/astral-sh/ruff-pre-commit
27+ rev : v0.9.1
28+ hooks :
29+ # Run the formatter
30+ - id : ruff-format
31+
Original file line number Diff line number Diff line change @@ -13,9 +13,8 @@ and apps.
1313
1414## Running examples
1515
16- Each example has a README that tells you how to run it locally.
17-
18- Most examples can also be opened in marimo's [ online
16+ Each example has a README that tells you how to run it locally. Most examples
17+ can also be opened in marimo's [ online
1918playground] ( https://docs.marimo.io/guides/publishing/playground/ ) by clicking
2019the "open in marimo" badge in its README.
2120
@@ -25,7 +24,8 @@ We welcome community contributions of examples; you don't need to be
2524an expert to help out!
2625
2726Open a pull request to contribute a new example. Each example should be placed
28- in its own folder and include a short ` README.md ` .
27+ in its own folder and include a short ` README.md ` . We also include smoke tests
28+ for each notebook in ` tests/ ` . Run tests with ` uvx --with marimo pytest . `
2929
3030Looking for a specific example or template but can't find it? Feel free
3131to file an issue and request it!
Original file line number Diff line number Diff line change 1+ """Smoke tests that check notebooks don't have syntax errors."""
2+
3+ import pathlib
4+ import sys
5+
6+ ROOT = pathlib .Path (__file__ ).parent .parent
7+ sys .path .append (str (ROOT ))
8+
9+ def test_nlp_span_comparison () -> None :
10+ from nlp_span_comparison import nlp_span_comparison
11+ assert not nlp_span_comparison .app ._unparsable
You can’t perform that action at this time.
0 commit comments