-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (27 loc) · 1.16 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: CI
on:
workflow_dispatch:
pull_request:
jobs:
install:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Create k8s cluster
run: .ci/k3d-cluster.sh
- name: Install FuseML Chart
run: |
latest=$(find fuseml/v* -exec ls -td '{}' + | head -n 1 | cut -f 2 -d "/")
helm install fuseml "fuseml/$latest" --create-namespace --namespace fuseml-installer --set extensions.mlflow=true --set extensions.kfserving=true
- name: Wait for deployment to finish
run: .ci/track-fuseml-job.sh
- name: Check the installed extensions
run: |
export FUSEML_SERVER_URL=http://$(kubectl get VirtualService -n fuseml-core fuseml-core -o jsonpath="{.spec.hosts[0]}")
extensions=$(curl -sd '{}' -X GET -H "Content-Type: application/x-yaml" $FUSEML_SERVER_URL/extensions | yq e ".[].id" - | sort | tr '\n' ',' | tr -d "\"" | head -c -1)
if [[ "$extensions" == "cert-manager,kfserving,knative,mlflow" ]]; then
exit 0
fi
echo "Wrong list of installed extensions: $extensions"
exit 1