Skip to content
Merged
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
23 changes: 8 additions & 15 deletions .github/workflows/tauri-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,20 @@ jobs:
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)
wait
- name: Test production build
run: npm run tauri build -- --bundles deb # Skip testing appimage, is this dangerous? It's slow...
- name: Test production build # Skip testing appimage, is this dangerous? It's slow...
run: |
npm run tauri build -- --ci --bundles deb
- name: Install production build
run: |
ls ./src-tauri/target/release/bundle/deb && sudo apt install -y ./src-tauri/target/release/bundle/deb/*.deb
- name: Setup xvfb for screen 0
run: Xvfb :1 -screen 0 1600x1200x24 &

- name: Test beeai compiler
env:
DISPLAY: :1
run: |
PATH=./src-tauri/target/release/:$PATH

for i in ./demos/beeai/*.py
do pdl compile beeai $i -g -o /tmp/z.json && jq .description /tmp/z.json
done
Xvfb :1 -screen 0 1600x1200x24 &

- name: Test pdl run against production build
- name: Test 'pdl run' against production build
env:
DISPLAY: :1
run: |
PATH=./src-tauri/target/release/:$PATH

# 1a. `run` subcommand errors due to missing required positional parameter
pdl run && (echo "This should have failed" && exit 1) || (echo "Great, expected failure received" && exit 0)

Expand Down