Skip to content

Commit d9a6ef8

Browse files
committed
feat: add echo script tests and remove unused model references
1 parent 3ac87a3 commit d9a6ef8

5 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131
run: pnpm run test:system
3232
- name: compile tests
3333
run: pnpm run test:compile
34+
- name: test echo
35+
run: pnpm run test:scripts:echo
3436
- run: git fetch origin test-ignore
3537
- name: tests
3638
run: pnpm -r test

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
"test:pyodide": "DEBUG=genaiscript:pyodide node packages/cli/dist/src/index.js run pyodide --no-run-trace --no-output-trace",
104104
"test:samples": "cd samples/sample && pnpm test",
105105
"test:scripts": "cd samples/sample/ && pnpm test:scripts",
106+
"test:scripts:echo": "pnpm test:scripts --filter-model echo",
106107
"test:scripts:view": "cd samples/sample/ && pnpm test:scripts:view",
107108
"test:system": "cd packages/core && node ../cli/dist/src/index.js scripts compile",
108109
"test:runtime": "cd packages/runtime && pnpm run test",

samples/sample/genaisrc/github.genai.mts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
script({
2-
model: "echo",
32
tests: {},
43
});
54

samples/sample/genaisrc/resolvemodel.genai.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ const large = await host.resolveLanguageModel("large");
33
console.log({ large });
44
const small = await host.resolveLanguageModel("small");
55
console.log({ small });
6-
const d = await host.resolveLanguageModel();
7-
console.log({ default: d });
86
const { model } = env.meta;
97
const dm = await host.resolveLanguageModel(model);
108
console.log({ current: dm });

samples/sample/genaisrc/transcribe.genai.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
script({ model: "echo", group: "commit", tests: {} });
21
const res = await transcribe("src/audio/helloworld.mp3");
32
console.log(res);
43

0 commit comments

Comments
 (0)