Skip to content

Commit ebb395f

Browse files
committed
fix: add Spice runtime setup to publish workflow
The publish workflow was missing the Spice runtime installation and initialization steps that the build workflow has. Tests require a local Spice runtime to be running.
1 parent 431044f commit ebb395f

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,23 @@ jobs:
3939
- name: Build
4040
run: make build
4141

42+
- name: Install Spice (https://install.spiceai.org)
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
run: |
46+
curl https://install.spiceai.org | /bin/bash
47+
echo "$HOME/.spice/bin" >> $GITHUB_PATH
48+
$HOME/.spice/bin/spice install
49+
50+
- name: Init and start spice app
51+
run: |
52+
spice init spice_qs
53+
cd spice_qs
54+
spice add spiceai/quickstart
55+
spice run &> spice.log &
56+
# time to initialize added dataset
57+
sleep 10
58+
4259
- name: Run tests
4360
run: make test
4461
env:

0 commit comments

Comments
 (0)