Skip to content

Commit

Permalink
Fix problem of codecov not run for arrow support tests
Browse files Browse the repository at this point in the history
- Modify run_test.sh cmake command
- Modify setup.sh to include pyarrow 0.17
  • Loading branch information
Zhang Zhang committed Aug 4, 2020
1 parent 176e330 commit e5a739b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/travis/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ if [ ${TASK} == "python_test" ]; then
# Build/test
rm -rf build
mkdir build && cd build
cmake .. -DUSE_OPENMP=ON -DCMAKE_VERBOSE_MAKEFILE=ON
conda install -c conda-forge pyarrow=0.17.*
cmake .. -DUSE_OPENMP=ON -DCMAKE_VERBOSE_MAKEFILE=ON -DARROW_HOME=$HOME/miniconda
make -j$(nproc)

echo "-------------------------------"
Expand All @@ -39,7 +40,7 @@ if [ ${TASK} == "python_test" ]; then
# Run unit tests
cd ..
python -m pip install graphviz pytest pytest-cov codecov
python -m pip install datatable hypothesis
python -m pip install datatable pyarrow==0.17.* hypothesis
python -m pip install numpy scipy pandas matplotlib scikit-learn dask[complete]
python -m pytest -v --fulltrace -s tests/python --cov=python-package/xgboost || exit -1
codecov
Expand Down

0 comments on commit e5a739b

Please sign in to comment.