-
Notifications
You must be signed in to change notification settings - Fork 674
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Yuvraj <[email protected]>
- Loading branch information
Showing
1 changed file
with
27 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,11 @@ name: End to End tests | |
|
||
on: | ||
workflow_call: | ||
inputs: | ||
priorities: | ||
description: "Priorities of tests to register (comma-separated)" | ||
required: true | ||
type: string | ||
jobs: | ||
endtoend: | ||
name: End to End tests | ||
|
@@ -11,6 +16,9 @@ jobs: | |
uses: actions/checkout@v2 | ||
- uses: unionai/[email protected] | ||
name: Setup flytectl | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- id: load-docker-cache | ||
name: Load Docker Cache | ||
uses: actions/cache@v1 | ||
|
@@ -29,13 +37,24 @@ jobs: | |
run: | | ||
flytectl sandbox exec -- helm repo add flyteorg https://flyteorg.github.io/flyte | ||
flytectl sandbox exec -- helm repo update | ||
flytectl sandbox exec -- helm upgrade flyte -n flyte --kubeconfig=/etc/rancher/k3s/k3s.yaml flyteorg/flyte -f /flyteorg/share/flyte/values.yaml --set ${{ github.event.repository.name }}.image.repository=flyteorg/${{ github.event.repository.name }},${{ github.event.repository.name }}.image.tag=latest | ||
- name: End2End | ||
flytectl sandbox exec -- helm upgrade flyte -n flyte --kubeconfig=/etc/rancher/k3s/k3s.yaml flyteorg/flyte -f /flyteorg/share/flyte/values.yaml --wait --set ${{ github.event.repository.name }}.image.repository=flyteorg/${{ github.event.repository.name }},${{ github.event.repository.name }}.image.tag=latest | ||
- name: Setup Flytekit | ||
env: | ||
DNS: "127.0.0.1:30081" | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install flytekit | ||
pip freeze | ||
- name: Register flytesnacks examples | ||
uses: unionai/[email protected] | ||
with: | ||
flytesnacks: true | ||
project: flytesnacks | ||
version: "latest" | ||
domain: development | ||
- name: Run tests | ||
id: run-tests | ||
env: | ||
KUBECONFIG: /home/runner/.flyte/k3s/k3s.yaml | ||
PRIORITIES: "${{ inputs.priorities }}" | ||
run: | | ||
kubectl cluster-info | ||
kubectl get pods -n kube-system | ||
echo "current-context:" $(kubectl config current-context) | ||
echo "environment-kubeconfig:" ${KUBECONFIG} | ||
make end2end_execute | ||
./boilerplate/flyte/end2end/end2end.sh |