Skip to content

Consolidate Kubeflow tests #47

Consolidate Kubeflow tests

Consolidate Kubeflow tests #47

name: Build & Apply Training Operator manifests in KinD
on:
pull_request:
paths:
- .github/workflows/train_operator_test.yaml
- apps/training-operator/upstream/**
- tests/gh-actions/install_istio.sh
- common/istio*/**
- tests/gh-actions/kf-objects/tfjob.yaml
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install KinD, Create KinD cluster and Install kustomize
run: |
chmod +x tests/gh-actions/install_KinD_create_KinD_cluster_install_kustomize.sh
./tests/gh-actions/install_KinD_create_KinD_cluster_install_kustomize.sh
- name: Install Istio
run: ./tests/gh-actions/install_istio.sh
- name: Build & Apply manifests
run: |
cd apps/training-operator/upstream
kubectl create ns kubeflow
kustomize build overlays/kubeflow | kubectl apply -f -
kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout 180s
- name: Create a TFJob
run: |
kubectl create -f tests/gh-actions/kf-objects/tfjob.yaml
kubectl wait --for=condition=Succeeded tfjobs tfjob-simple -n kubeflow --timeout 600s