diff options
| author | 2024-01-27 22:28:09 +0800 | |
|---|---|---|
| committer | 2024-01-27 22:28:09 +0800 | |
| commit | 63d3232e9765553e9e5418542d890977fc14621b (patch) | |
| tree | c872494a383e444710ae6740423d6da6278f60e4 /tests/examples/ndice/tests.py | |
| parent | 1d9a500b727e8879cdaeb9c378ac717001c56ccc (diff) | |
| download | infini-63d3232e9765553e9e5418542d890977fc14621b.tar.gz infini-63d3232e9765553e9e5418542d890977fc14621b.zip | |
:sparkles: test(ci): add ndice package as example tests
Diffstat (limited to 'tests/examples/ndice/tests.py')
| -rw-r--r-- | tests/examples/ndice/tests.py | 17 |
1 files changed, 17 insertions, 0 deletions
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) |
