Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions .github/workflows/tauri-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ concurrency:
cancel-in-progress: true

jobs:
viewer:
cli:
name: Test pdl CLI using Tauri
runs-on: ubuntu-latest
defaults:
Expand All @@ -26,15 +26,26 @@ jobs:
node-version: 22
- name: Install dependencies
run: |
npm ci & sudo apt update && sudo apt install -y libgtk-3-dev libwebkit2gtk-4.1-dev librsvg2-dev patchelf at-spi2-core
npm ci & sudo apt update && \
sudo apt install -y libgtk-3-dev libwebkit2gtk-4.1-dev librsvg2-dev patchelf at-spi2-core && \
(curl -fsSL https://ollama.com/install.sh | sudo -E sh && sleep 2 && ollama pull granite3.2:2b)
wait
- name: Test production build
run: npm run tauri build -- --bundles deb # Skip testing appimage, is this dangerous? It's slow...
- name: Setup xvfb for screen 0
run: Xvfb :1 -screen 0 1600x1200x24 &
run: Xvfb :1 -screen 0 1600x1200x24 &

- name: Run production build
env:
DISPLAY: :1
run: ./src-tauri/target/release/pdl run | grep Usage
run: |
PATH=./src-tauri/target/release/:$PATH

# 1. `run` subcommand works without any arguments
pdl run | grep Usage

# 2. `run` subcommand works with demo1.pdl
pdl run ./demos/demo1.pdl | grep 'write a hello'

- name: Tear down xvfb
run: killall Xvfb
2 changes: 1 addition & 1 deletion pdl-live-react/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
-e git+ssh://git@github.com/IBM/prompt-declaration-language.git#egg=prompt_declaration_language
-e git+https://github.com/IBM/prompt-declaration-language.git#egg=prompt_declaration_language
#prompt-declaration-language==0.4.1