Skip to content

Commit 2d640e1

Browse files
committed
ci: run python tests
Signed-off-by: Tristram Gräbener <tristram+git@tristramg.eu>
1 parent 24e987c commit 2d640e1

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.github/workflows/tests.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
- name: Check versions
8585
run: python check_versions.py
8686

87-
python:
87+
python-build:
8888
name: Build python release
8989
runs-on: ubuntu-latest
9090
steps:
@@ -97,6 +97,23 @@ jobs:
9797
with:
9898
args: --release
9999
working-directory: './python'
100+
101+
python-test:
102+
name: Test python bindings
103+
runs-on: ubuntu-latest
104+
defaults:
105+
run:
106+
working-directory: './python'
107+
steps:
108+
- uses: actions/checkout@v4
109+
- name: Install uv
110+
uses: astral-sh/setup-uv@v6
111+
- name: Install dependencies
112+
run: uv sync
113+
- name: Install liblrs
114+
run: uv run maturin develop
115+
- name: Run the tests
116+
run: uv run pytest
100117

101118
wasm:
102119
name: Build wasm release

python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ exclude = [{ path = "README.md", format = "sdist" }]
2121
strip = true
2222

2323
[dependency-groups]
24-
dev = ["pytest"]
24+
dev = ["pytest", "maturin"]

0 commit comments

Comments
 (0)