Skip to content

Commit 354ea2e

Browse files
authored
Add Python tests with Github Actions (#3)
1 parent 4e72b17 commit 354ea2e

File tree

5 files changed

+603
-64
lines changed

5 files changed

+603
-64
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
Lint:
13+
runs-on: macos-14
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: astral-sh/setup-uv@v6
17+
- run: |
18+
uv run ruff format --check
19+
uv run ruff check
20+
21+
Test:
22+
runs-on: macos-14
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: astral-sh/setup-uv@v6
26+
- run: uv run pytest
27+
28+
Typecheck:
29+
runs-on: macos-14
30+
steps:
31+
- uses: actions/checkout@v4
32+
- uses: astral-sh/setup-uv@v6

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ requires-python = ">=3.13"
77
authors = [{ name = "Trevor Manz", email = "[email protected]" }]
88
dependencies = [
99
"lsprotocol>=2025.0.0rc1",
10-
"marimo>=0.14.9",
10+
"marimo>=0.14.17",
1111
"pygls>=2.0.0a4",
1212
]
1313

@@ -16,6 +16,9 @@ marimo-lsp = "marimo_lsp:main"
1616

1717
[dependency-groups]
1818
dev = [
19+
"dirty-equals>=0.9.0",
20+
"inline-snapshot>=0.27.2",
21+
"pytest-lsp==1.0.0b2",
1922
"pytest>=8.4.1",
2023
"ruff>=0.12.1",
2124
]
@@ -50,6 +53,3 @@ ignore = [
5053
"PLC",
5154
"PLR",
5255
]
53-
54-
[tool.uv.sources]
55-
marimo = { path = "../marimo", editable = true }

tests/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Tests for marimo-lsp."""

0 commit comments

Comments
 (0)