-
Notifications
You must be signed in to change notification settings - Fork 121
46 lines (44 loc) · 1.43 KB
/
end2end.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
35
36
37
38
39
40
41
42
43
44
45
46
name: End to End tests
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
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@v4
with:
python-version: "3.10"
- name: Create Sandbox Cluster
run: |
flytectl config init --host localhost:30080
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 envd==0.3.35 flytekitplugins-deck-standard flytekitplugins-ray flytekitplugins-envd
pip freeze
- name: execute flyte workflows locally
working-directory: examples
run: |
pyflyte run integration_test.py integration_test
- name: execute flyte workflows on demo cluster
working-directory: examples
run: |
pyflyte --config /home/runner/.flyte/config-sandbox.yaml run --remote integration_test.py integration_test