A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
Add marimo-lsp compatibility check (#8279)
Trevor Manzbe01091e7fd4
diff --git a/.github/workflows/test_marimo_lsp.yaml b/.github/workflows/test_marimo_lsp.yamlnew file mode 100644index 0000000000..f70ade6b90--- /dev/null+++ b/.github/workflows/test_marimo_lsp.yaml@@ -0,0 +1,81 @@+name: Test marimo-lsp compatibility++on:+ push:+ branches: [main]+ workflow_dispatch:++concurrency:+ group: ${{ github.workflow }}-${{ github.ref }}+ cancel-in-progress: true++permissions:+ contents: read+ issues: write++jobs:+ test_marimo_lsp:+ runs-on: ubuntu-latest+ steps:+ - name: ⬇️ Checkout marimo+ uses: actions/checkout@v4++ - name: ⬇️ Checkout marimo-lsp+ uses: actions/checkout@v4+ with:+ repository: marimo-team/marimo-lsp+ path: marimo-lsp++ - name: 🐍 Setup uv+ uses: astral-sh/setup-uv@v7++ - name: 🔧 Install marimo-lsp with local marimo+ working-directory: marimo-lsp+ run: |+ uv add --editable ../++ - name: 🔍 Typecheck+ id: typecheck+ working-directory: marimo-lsp+ run: uv run ty check++ - name: 🧪 Run tests+ if: github.event_name == 'workflow_dispatch'+ id: tests+ working-directory: marimo-lsp+ run: uv run pytest++ - name: 🐛 Open issue on failure+ if: failure() && github.event_name == 'push'+ uses: actions/github-script@v7+ with:+ script: |+ const title = '🚨 marimo-lsp compatibility check failed';+ // Check if an open issue already exists+ const existing = await github.rest.issues.listForRepo({+ owner: context.repo.owner,+ repo: context.repo.repo,+ state: 'open',+ labels: 'marimo-lsp',+ });+ if (existing.data.some(issue => issue.title === title)) {+ console.log('Issue already exists, skipping creation');+ return;+ }+ const commit = context.sha.substring(0, 7);+ const runUrl = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`;+ await github.rest.issues.create({+ owner: context.repo.owner,+ repo: context.repo.repo,+ title,+ labels: ['marimo-lsp'],+ body: [+ `The marimo-lsp compatibility check failed after merging commit ${commit} into \`main\`.`,+ '',+ `**Workflow run:** ${runUrl}`,+ '',+ 'The typecheck (`uv run ty check`) in [marimo-team/marimo-lsp](https://github.com/marimo-team/marimo-lsp) failed against the latest marimo.',+ '',+ 'This likely means a recent change broke the marimo-lsp integration.',+ ].join('\n'),+ });