Skip to content

Commit

Permalink
refactor CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarsh2001 committed Oct 25, 2023
1 parent 2756ccf commit 0de04bd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/_basic-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: test-basics
on: [workflow_call, workflow_dispatch]

jobs:
Ubuntu:
cpu:
runs-on: ubuntu-latest #ToDo: ${{ needs.build.outputs.os }}
strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_demo-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: test-examples
on: [workflow_call, workflow_dispatch]

jobs:
GCP:
gpu:
runs-on: self-hosted #ToDo: ${{ needs.build.outputs.os }}
strategy:
fail-fast: false
Expand Down
4 changes: 2 additions & 2 deletions tests/notebook_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ def startTest(self, test):

if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("-notebook_path", help="Path to the notebook file")
parser.add_argument("-module", help="Can either test examples or Basics")
parser.add_argument("notebook_path", help="Path to the notebook file")
parser.add_argument("module", help="Can either test examples or Basics")
args = parser.parse_args()

NotebookTest.notebook = args.notebook_path
Expand Down
3 changes: 2 additions & 1 deletion tests/test_demos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ echo -n "$1" > .ivy/key.pem
python3 -m pip install -r requirements.txt >/dev/null 2>&1

# run test
python3 tests/notebook_testing.py -notebook-path "$2" -module "$3"
echo "$2" "$3"
python3 tests/notebook_testing.py "$2" "$3"

0 comments on commit 0de04bd

Please sign in to comment.