Skip to content

Commit 807030f

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 dcf4e9b commit 807030f

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
@@ -976,6 +976,8 @@ pub async fn run(
976976
debug: bool,
977977
stream: bool,
978978
) -> Interpretation {
979+
crate::pdl::pull::pull_if_needed(&program).await?;
980+
979981
let mut interpreter = Interpreter::new();
980982
interpreter.debug = debug;
981983
interpreter.stream = stream;
@@ -1007,7 +1009,6 @@ pub async fn run_file(source_file_path: &str, debug: bool, stream: bool) -> Inte
10071009
let cwd = path.parent().and_then(|cwd| Some(cwd.to_path_buf()));
10081010
let program = parse_file(&path)?;
10091011

1010-
crate::pdl::pull::pull_if_needed(&program).await?;
10111012
run(&program, cwd, debug, stream).await
10121013
}
10131014

0 commit comments

Comments
 (0)