Skip to content

Commit

Permalink
sequential execution of jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarsh2001 committed Aug 25, 2023
1 parent 8d223c7 commit e0c1b6d
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions .github/workflows/test_basics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,25 @@ name: test-basics
on: [push, pull_request, workflow_dispatch]

jobs:
Ubuntu:
strategy:
matrix:
modules: [01_write_ivy_code, 02_unify_code, 03_compile_code, 04_transpile_code, 05_lazy_vs_eager, 06_how_to_use_decorators, 07_transpile_any_library, 08_transpile_any_model, 09_write_a_model_using_ivy]
SetupDocker:
runs-on: ubuntu-20.04
steps:
- name: Checkout Demos🛎
uses: actions/checkout@v2
with:
path: demos
persist-credentials: false
submodules: "recursive"
fetch-depth: 100

- name: Set Up Docker Container
id: setup-docker
run: |
cd demos
docker run -d --name ivy-container unifyai/ivy:latest tail -f /dev/null
RunTests:
needs: SetupDocker
runs-on: ubuntu-20.04
steps:
- name: Checkout Demos🛎
Expand All @@ -21,8 +35,16 @@ jobs:
id: tests
run: |
cd demos
docker run -v `pwd`:/ivy/demos unifyai/ivy:latest demos/tests/test_demos.sh ${{ secrets.USER_API_KEY }} ${{ matrix.modules }}.ipynb "basics"
docker exec ivy-container /ivy/demos/tests/test_demos.sh ${{ secrets.USER_API_KEY }} ${{ matrix.test_files }} "basics"
- name: Check on Failures
if: steps.tests.outcome != 'success'
run: exit 1

strategy:
matrix:
include:
- test_files: "01_write_ivy_code.ipynb"
- test_files: "02_unify_code.ipynb"
- test_files: "03_compile_code.ipynb"
# Add more test files here

0 comments on commit e0c1b6d

Please sign in to comment.