Add integration tests #1
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
name: End to End tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
endtoend: | |
name: End to End tests | |
runs-on: ubuntu-latest | |
env: | |
FLYTESNACKS_VERSION: "" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: unionai/[email protected] | |
name: Setup flytectl | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: 3.10 | |
- name: Create Sandbox Cluster | |
run: | | |
flytectl config init | |
flytectl demo start | |
kubectl create -k "github.com/ray-project/kuberay/ray-operator/config/default?ref=v0.5.2" | |
kubectl rollout restart deployment flyte-sandbox -n flyte | |
- name: Setup Flytekit | |
run: | | |
python -m pip install --upgrade pip | |
pip install flytekit flytekitplugins-deck-standard flytekitplugins-ray | |
pip freeze | |
- name: execute flyte workflows | |
working-directory: examples | |
run: | | |
pyflyte run --remote integration_test.py integration_test |