Skip to content

Commit c013c63

Browse files
committed
test: extend tauri cli github actions tests
Signed-off-by: Nick Mitchell <[email protected]>
1 parent 574b577 commit c013c63

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

.github/workflows/tauri-cli.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
jobs:
15-
viewer:
15+
cli:
1616
name: Test pdl CLI using Tauri
1717
runs-on: ubuntu-latest
1818
defaults:
@@ -26,15 +26,26 @@ jobs:
2626
node-version: 22
2727
- name: Install dependencies
2828
run: |
29-
npm ci & sudo apt update && sudo apt install -y libgtk-3-dev libwebkit2gtk-4.1-dev librsvg2-dev patchelf at-spi2-core
29+
npm ci & sudo apt update && \
30+
sudo apt install -y libgtk-3-dev libwebkit2gtk-4.1-dev librsvg2-dev patchelf at-spi2-core && \
31+
(curl -fsSL https://ollama.com/install.sh | sudo -E sh && sleep 2 && ollama pull granite3.2:2b)
3032
wait
3133
- name: Test production build
3234
run: npm run tauri build -- --bundles deb # Skip testing appimage, is this dangerous? It's slow...
3335
- name: Setup xvfb for screen 0
34-
run: Xvfb :1 -screen 0 1600x1200x24 &
36+
run: Xvfb :1 -screen 0 1600x1200x24 &
37+
3538
- name: Run production build
3639
env:
3740
DISPLAY: :1
38-
run: ./src-tauri/target/release/pdl run | grep Usage
41+
run: |
42+
PATH=./src-tauri/target/release/:$PATH
43+
44+
# 1. `run` subcommand works without any arguments
45+
pdl run | grep Usage
46+
47+
# 2. `run` subcommand works with demo1.pdl
48+
pdl run ./demos/demo1.pdl | grep 'write a hello'
49+
3950
- name: Tear down xvfb
4051
run: killall Xvfb

pdl-live-react/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
-e git+ssh://git@github.com/IBM/prompt-declaration-language.git#egg=prompt_declaration_language
1+
-e git+https://github.com/IBM/prompt-declaration-language.git#egg=prompt_declaration_language
22
#prompt-declaration-language==0.4.1

0 commit comments

Comments
 (0)