Skip to content

Commit 9cee298

Browse files
committed
Prime JSON extension before C API tests
1 parent 0f4af1b commit 9cee298

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,13 @@ jobs:
121121
run: |
122122
.venv/bin/ruff check src_py test
123123
124+
- name: Smoke test JSON extension install
125+
working-directory: ladybug/tools/python_api
126+
env:
127+
LBUG_PYTHON_BACKEND: capi
128+
run: |
129+
.venv/bin/python -c 'import shutil, tempfile; from pathlib import Path; import ladybug as lb; tmp = Path(tempfile.mkdtemp()); db = lb.Database(tmp / "db.lbdb"); conn = lb.Connection(db); conn.execute("INSTALL json; LOAD json;"); shutil.rmtree(tmp)'
130+
124131
- name: Run pytest (C API backend)
125132
working-directory: ladybug/tools/python_api
126133
env:

0 commit comments

Comments
 (0)