Skip to content

Commit

Permalink
some more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vedpatwardhan committed Nov 3, 2023
1 parent afe86e9 commit 472754a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/_basic-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ jobs:
continue-on-error: true

- name: Check on failures
if: steps.tests.outcome!= 'success'
if: steps.tests.outcome != 'success'
run: exit 1
4 changes: 2 additions & 2 deletions .github/workflows/_demo-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
run: |
cd demos
docker run --gpus all -v "$(pwd)":/ivy/demos unifyai/ivy:latest-gpu demos/tests/test_demos.sh ${{ secrets.USER_API_KEY }} examples_and_demos/${{ matrix.modules }}.ipynb
continue-on-error: false
continue-on-error: true

- name: Check on failures
if: steps.tests.outcome!= 'success'
if: steps.tests.outcome != 'success'
run: exit 1

5 changes: 5 additions & 0 deletions tests/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,8 @@ def startTest(self, test):
suite = unittest.TestLoader().loadTestsFromTestCase(NotebookTest)
runner = IterativeTestRunner(verbosity=2)
result = runner.run(suite)

if result.wasSuccessful():
exit(0) # Tests passed
else:
exit(1) # Tests failed
2 changes: 1 addition & 1 deletion tests/test_demos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ mkdir .ivy
touch .ivy/key.pem
echo -n "$1" > .ivy/key.pem

conda install -c "nvidia/label/cuda-11.8.0" cuda-nvcc
# conda install -c "nvidia/label/cuda-11.8.0" cuda-nvcc

# install dependencies
pip install -r requirements.txt >/dev/null 2>&1
Expand Down

0 comments on commit 472754a

Please sign in to comment.