Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #634 from chainer/disable-edible-for-cupy
Browse files Browse the repository at this point in the history
No editable install for cupy
  • Loading branch information
emcastillo authored Feb 23, 2021
2 parents 177860e + dc365d6 commit d81d28f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
17 changes: 11 additions & 6 deletions test_cupy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

. ./environment.sh

pip install --user -e cupy/[jenkins]

cd cupy
pip install --user cupy/[jenkins]

# Shows cupy config before running the tests
python -c 'import cupy; cupy.show_config()'
Expand All @@ -26,14 +24,19 @@ else
pytest_opts+=(-m 'not slow')
fi

python -m pytest "${pytest_opts[@]}" tests
pushd cupy
python -m pytest "${pytest_opts[@]}" tests/install_tests
popd

pushd cupy/tests
python -m pytest "${pytest_opts[@]}" cupy_tests cupyx_tests example_tests

# Submit coverage to Coveralls
python ../push_coveralls.py
python ../../push_coveralls.py

# Submit coverage to Codecov
# Codecov uses `coverage.xml` generated from `.coverage`
python -m coverage xml
python -m coverage xml --ignore-errors
python -m codecov

# Run benchmark on Python 3
Expand All @@ -44,3 +47,5 @@ if [ "$(python -c 'import sys; print(sys.version_info.major)')" = "3" ]; then
python run.py --show-gpu
popd
fi

popd
2 changes: 1 addition & 1 deletion test_cupy_doc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

. ./environment.sh

pip install --user -e cupy/[jenkins]
pip install --user cupy/[jenkins]

cd cupy/docs

Expand Down
12 changes: 8 additions & 4 deletions test_cupy_slow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

. ./environment.sh

pip install --user -e cupy/[jenkins]

cd cupy
pip install --user cupy/[jenkins]

export CUPY_DUMP_CUDA_SOURCE_ON_ERROR=1

Expand All @@ -23,4 +21,10 @@ else
pytest_opts+=(-m 'slow')
fi

python -m pytest "${pytest_opts[@]}" tests
pushd cupy
python -m pytest "${pytest_opts[@]}" tests/install_tests
popd

pushd cupy/tests
python -m pytest "${pytest_opts[@]}" cupy_tests cupyx_tests example_tests
popd

0 comments on commit d81d28f

Please sign in to comment.