forked from ivy-llc/demos
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (48 loc) · 1.52 KB
/
_demo-test.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
47
48
49
50
51
52
53
name: test-examples
on:
workflow_call:
inputs:
nightly_binaries:
type: boolean
default: false
required: false
jobs:
gpu:
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,
lstm_demo,
]
steps:
- name: Clean repository
run:
sudo rm -fr $GITHUB_WORKSPACE && mkdir $GITHUB_WORKSPACE
- name: Checkout Demos🛎
uses: actions/checkout@v4
with:
repository: unifyai/demos
path: demos
persist-credentials: false
submodules: "recursive"
fetch-depth: 1
- name: Checkout Ivy🛎
uses: actions/checkout@v4
with:
repository: unifyai/ivy
ref: ${{ inputs.nightly_binaries && 'nightly' || 'main' }}
path: ivy
persist-credentials: false
submodules: "recursive"
fetch-depth: 1
- name: Run Integration Tests for Enterprise Demos
run: |
docker pull unifyai/ivy:latest-gpu
docker run --rm --gpus all -v "$(pwd)"/demos:/ivy/demos -v "$(pwd)"/ivy:/ivy/ivy unifyai/ivy:latest-gpu demos/tests/test_demos.sh ${{ secrets.USER_API_KEY }} examples_and_demos/${{ matrix.modules }}.ipynb ${{ inputs.nightly_binaries }}