From 63d3232e9765553e9e5418542d890977fc14621b Mon Sep 17 00:00:00 2001 From: 苏向夜 Date: Sat, 27 Jan 2024 22:28:09 +0800 Subject: :sparkles: test(ci): add ndice package as example tests --- tests/examples/ndice/tests.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/examples/ndice/tests.py (limited to 'tests/examples/ndice/tests.py') diff --git a/tests/examples/ndice/tests.py b/tests/examples/ndice/tests.py new file mode 100644 index 00000000..c2e9b9d3 --- /dev/null +++ b/tests/examples/ndice/tests.py @@ -0,0 +1,17 @@ +from infini.loader import Loader +from infini.input import Input +from pathlib import Path +from ipm import api +from ipm.models.ipk import InfiniProject + +ipk = InfiniProject() +api.build(".") +api.install(f"dist/{ipk.default_name}", force=True) + +loader = Loader() +loader.load("ndice") +loader.close() + +core = loader.into_core() +for output in core.input(Input(".r20#d6")): + print(output) -- cgit v1.2.3-70-g09d2