Skip to content

Commit 828cefa

Browse files
committed
test: update github action rust interpreter test to remove ollama pull
This will force a test of the built-in rust-based pull logic. Signed-off-by: Nick Mitchell <[email protected]>
1 parent 257f0a6 commit 828cefa

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/rust-interpreter.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,5 @@ jobs:
3030
npm ci & sudo apt update && sudo apt install -y libgtk-3-dev libwebkit2gtk-4.1-dev librsvg2-dev patchelf at-spi2-core &
3131
(curl -fsSL https://ollama.com/install.sh | sudo -E sh && sleep 2)
3232
wait
33-
# todo: do this in rust
34-
ollama pull granite3.2:2b
3533
- name: Run interpreter tests
3634
run: npm run test:interpreter

pdl-live-react/src-tauri/src/pdl/interpreter.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,8 @@ pub async fn run(
974974
debug: bool,
975975
stream: bool,
976976
) -> Interpretation {
977+
crate::pdl::pull::pull_if_needed(&program).await?;
978+
977979
let mut interpreter = Interpreter::new();
978980
interpreter.debug = debug;
979981
interpreter.stream = stream;
@@ -1005,7 +1007,6 @@ pub async fn run_file(source_file_path: &str, debug: bool, stream: bool) -> Inte
10051007
let cwd = path.parent().and_then(|cwd| Some(cwd.to_path_buf()));
10061008
let program = parse_file(&path)?;
10071009

1008-
crate::pdl::pull::pull_if_needed(&program).await?;
10091010
run(&program, cwd, debug, stream).await
10101011
}
10111012

0 commit comments

Comments
 (0)