Skip to content

Commit

Permalink
run integration tests outside of docker to prevent 'no space left on …
Browse files Browse the repository at this point in the history
…device' (#28810)
  • Loading branch information
Sam-Armstrong authored Aug 23, 2024
1 parent f8ab4f1 commit 07759c5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

permissions:
actions: read
contents: write
jobs:
kornia:
runs-on: ubuntu-latest
Expand All @@ -32,9 +33,8 @@ jobs:
- name: Run Tests
id: tests
run: |
pip3 install kornia
cd ivy
docker run --rm -v "$(pwd)":/ivy -v "$(pwd)"/.hypothesis:/.hypothesis ivyllc/ivy:latest scripts/shell/run_integration_tests.sh kornia ${{ matrix.target }} ${{ secrets.IVY_API_KEY }}
sudo scripts/shell/run_integration_tests.sh kornia ${{ matrix.target }} ${{ secrets.IVY_API_KEY }}
continue-on-error: true

- name: Check on failures
Expand Down
21 changes: 21 additions & 0 deletions scripts/shell/run_integration_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,27 @@ integration=$1
target=$2

export IVY_KEY=$3
export VERSION=linux-nightly

pip3 install -r requirements/requirements.txt --upgrade
pip3 install jax
pip3 install jaxlib
pip3 install flax
pip3 install opencv-python
pip3 install pytest
pip3 install tensorflow
pip3 install torch
pip3 install torchvision
pip3 install kornia
pip3 install accelerate
pip3 install transformers
pip3 install redis
pip3 install hypothesis

# get the nightly binaries
python << 'EOF'
import ivy
ivy.utils.cleanup_and_fetch_binaries()
EOF

pytest ivy_tests/test_integrations/test_$integration.py -p no:warnings --target $target

0 comments on commit 07759c5

Please sign in to comment.