Skip to content

Commit

Permalink
Added ci for test
Browse files Browse the repository at this point in the history
Signed-off-by: Yuvraj <[email protected]>
  • Loading branch information
yindia committed Jun 11, 2021
1 parent 4a0ceb0 commit 648e7de
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 13 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,10 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: "0"
- run: docker pull ghcr.io/flyteorg/flyte-sandbox:dind
- uses: unionai/[email protected]
with:
version: '0.1.10'
- name: setup sandbox
run: make setup
- name: wait for sandbox
run: |
n=0
until [ "$n" -ge 5 ]; do
echo "try $n"
make wait && break
n=$((n+1))
sleep 1
done
run: flytectl sandbox start
- name: fast register
run: REGISTRY=ghcr.io/flyteorg VERSION=latest make fast_register
27 changes: 25 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Serialize snacks
name: Test snacks

on:
pull_request:
Expand All @@ -15,34 +15,57 @@ jobs:
with:
path: /tmp/release-snacks-core/
key: release-snacks-core
- uses: unionai/[email protected]
with:
version: '0.1.10'
- name: setup sandbox
run: flytectl sandbox start
- name: Generate Serialize proto
run: |
make -C cookbook/core serialize
- name: Register core example workflow
run : make -C cookbook/core register
- name: run pytest #TODO
run: echo "Hello"
integrations-build:
name: Build Integrations example
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: "0"
- uses: unionai/[email protected]
with:
version: '0.1.10'
- uses: actions/cache@v1
with:
path: /tmp/release-snacks-integrations/
key: release-snacks-plugins
- name: Generate Serialize proto
run: |
make -C cookbook/integrations serialize
- name: Register integrations example workflow
run : make -C cookbook/integrations register
- name: run pytest #TODO
run: echo "Hello"
case_studies-build:
name: Build Case studies example
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: "0"
- uses: unionai/[email protected]
with:
version: '0.1.10'
- uses: actions/cache@v1
with:
path: /tmp/release-snacks-case-studies/
key: release-snacks-case-studies
- name: Generate Serialize proto
run: |
make -C cookbook/case_studies serialize
make -C cookbook/case_studies serialize
- name: Register case_studies example workflow
run : make -C cookbook/case_studies register
- name: run pytest #TODO
run: echo "Hello"

0 comments on commit 648e7de

Please sign in to comment.