Skip to content

Commit

Permalink
rename jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarsh2001 committed Oct 25, 2023
1 parent a74021e commit 24a2938
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 62 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
name: test-basics
on:
push:
branches:
- main
- release/* #ToDo: add a release branch
pull_request:
workflow_dispatch:
on: [workflow_call, workflow_dispatch]

jobs:
Ubuntu:
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/_demo_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: test-examples
on: [workflow_call, workflow_dispatch]

jobs:
Ubuntu:
runs-on: self-hosted #ToDo: ${{ needs.build.outputs.os }}
strategy:
fail-fast: false
matrix:
modules: [alexnet_demo, bert_demo, image_segmentation_with_ivy_unet, mmpretrain_to_jax, resnet_demo, torch_to_jax]
steps:
- name: Clean repository
run:
sudo rm -fr $GITHUB_WORKSPACE && mkdir $GITHUB_WORKSPACE

- name: Checkout Demos🛎
uses: actions/checkout@v2
with:
path: demos
persist-credentials: false
submodules: "recursive"
fetch-depth: 1

- name: Run Demo Testing
run: |
cd demos
docker run -v `pwd`:/ivy/demos unifyai/multicuda:base_and_requirements demos/tests/test_demos.sh ${{ secrets.USER_API_KEY }} ${{ matrix.modules }}.ipynb "examples"
- name: Check on failures
if: steps.tests.outcome!= 'success'
run: exit 1

36 changes: 0 additions & 36 deletions .github/workflows/examples.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ on:
workflow_dispatch:

jobs:
run-test-basic-demos:
name: learn-the-basics
uses: .github/workflows/_basic_test.yml

activate-vm:
needs: run-test-basics
runs-on: ubuntu-latest
steps:
- name: Checkout Demos🛎
Expand All @@ -34,26 +39,10 @@ jobs:
python3 db_auth.py ${{ secrets.DB_ENDPOINT }} ${{ secrets.DB_OBJ_ID }}
python3 vm_auth.py ${{ secrets.SSH_USERNAME }} ${{ secrets.SSH_PASSPHRASE }} "false"
run-test:
run-test-example-demos:
needs: activate-vm
runs-on: self-hosted
steps:
- name: Clean repository
run:
sudo rm -fr $GITHUB_WORKSPACE && mkdir $GITHUB_WORKSPACE

- name: Checkout Demos🛎
uses: actions/checkout@v2
with:
path: demos
persist-credentials: false
submodules: "recursive"
fetch-depth: 1

- name: Run Demo Testing
run: |
cd demos
docker run -v `pwd`:/ivy/demos unifyai/multicuda:base_and_requirements demos/tests/test_demos.sh ${{ secrets.USER_API_KEY }} bert_demo.ipynb "examples"
name: examples-and-demos
uses: .github/workflows/_demo_test.yml

deactivate-vm:
needs: run-test
Expand Down

0 comments on commit 24a2938

Please sign in to comment.