Skip to content

Single place to convert your 2D floor plans to 3d model (no LLM)

Python

CI: run tests/run_all.sh on GitHub Actions for pushes to main and pull requests

23f2005639ba6a0e460035
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
new file mode 100644
index 0000000..7fc961f
--- /dev/null
+++ b/.github/workflows/tests.yml
@@ -0,0 +1,21 @@
+# The tests that need no Blender: detector and quantities on the sample, server guards, furniture clashes.
+# The browser test (tests/test_site.mjs) builds a house in Blender, so it is run by hand.
+name: tests
+on:
+ push:
+ branches: [main]
+ pull_request:
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/setup-python@v5
+ with:
+ python-version: "3.14"
+ - uses: actions/setup-node@v4
+ with:
+ node-version: 22
+ - run: sudo apt-get update && sudo apt-get install -y poppler-utils
+ - run: npm ci # three.js:: the server test checks the website zip carries it
+ - run: tests/run_all.sh
diff --git a/README.md b/README.md
index d1fa49f..2a9c936 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,7 @@
# PlanTo3D
+[![tests](https://github.com/23f2005639/planTo3D/actions/workflows/tests.yml/badge.svg)](https://github.com/23f2005639/planTo3D/actions/workflows/tests.yml)
+
**Floor plan PDF in. Furnished, walkable 3D house out.** No AI model and no LLM: every step is geometry, rules and Blender.
<a href="docs/demo.mp4"><img src="docs/demo.gif" alt="Walking through the house built from the sample plan" width="100%"></a>
@@ -213,6 +215,8 @@ tests/run_all.sh # detector on the sample, qua
CHROME=/path/to/chromium node tests/test_site.mjs examples/sample_plan.pdf http://127.0.0.1:8080
```
+GitHub Actions runs `tests/run_all.sh` on every push to `main` and every pull request (`.github/workflows/tests.yml`); it has no Blender, so run `test_site.mjs` yourself after changes to `web/`, `server.py` or `blender/`.
+
`test_site.mjs` drives a real headless browser against a running server (about 2 min, one draft build): upload page, Furniture box, build box, screenshot, recording, map and top view. `tests/test_detect.py` scores the detector on the private drawings and is skipped unless `PLANTO3D_FIXTURES` points at them.
## Extras