Skip to content

Commit a0e16e1

Browse files
committed
test: tauri github actions test should apt install the deb
This also removes the beeai compiler test in that workflow, as we now cover that in the core rust interpreter tests. Signed-off-by: Nick Mitchell <[email protected]>
1 parent 98182a6 commit a0e16e1

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

.github/workflows/tauri-cli.yml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,31 +27,22 @@ jobs:
2727
- name: Install dependencies
2828
# sleep 2 to wait for ollama to be running... hack warning
2929
run: |
30-
npm ci & sudo apt update && \
31-
sudo apt install -y libgtk-3-dev libwebkit2gtk-4.1-dev librsvg2-dev patchelf at-spi2-core && \
32-
(curl -fsSL https://ollama.com/install.sh | sudo -E sh && sleep 2)
30+
npm ci & (curl -fsSL https://ollama.com/install.sh | sudo -E sh && sleep 2)
3331
wait
34-
- name: Test production build
35-
run: npm run tauri build -- --bundles deb # Skip testing appimage, is this dangerous? It's slow...
32+
- name: Test production build # Skip testing appimage, is this dangerous? It's slow...
33+
run: |
34+
npm run tauri build -- --ci --bundles deb
35+
- name: Install production build
36+
run: |
37+
ls ./src-tauri/target/release/ && sudo apt install -y ./src-tauri/target/release/*.deb
3638
- name: Setup xvfb for screen 0
37-
run: Xvfb :1 -screen 0 1600x1200x24 &
38-
39-
- name: Test beeai compiler
40-
env:
41-
DISPLAY: :1
4239
run: |
43-
PATH=./src-tauri/target/release/:$PATH
44-
45-
for i in ./demos/beeai/*.py
46-
do pdl compile beeai $i -g -o /tmp/z.json && jq .description /tmp/z.json
47-
done
40+
Xvfb :1 -screen 0 1600x1200x24 &
4841
49-
- name: Test pdl run against production build
42+
- name: Test 'pdl run' against production build
5043
env:
5144
DISPLAY: :1
5245
run: |
53-
PATH=./src-tauri/target/release/:$PATH
54-
5546
# 1a. `run` subcommand errors due to missing required positional parameter
5647
pdl run && (echo "This should have failed" && exit 1) || (echo "Great, expected failure received" && exit 0)
5748

0 commit comments

Comments
 (0)