[dask] Add shap tests. (#6575)

This commit is contained in:
Jiaming Yuan
2021-01-08 14:59:27 +08:00
committed by GitHub
parent 7c9dcbedbc
commit 96d3d32265
3 changed files with 78 additions and 7 deletions

View File

@@ -86,6 +86,15 @@ cover: check
)
endif
# dask is required to pass, others are not
# If any of the dask tests failed, contributor won't see the other error.
mypy:
cd python-package; \
mypy ./xgboost/dask.py ../tests/python/test_with_dask.py --follow-imports=silent; \
mypy ../tests/python-gpu/test_gpu_with_dask.py --follow-imports=silent; \
mypy . || true ;
clean:
$(RM) -rf build lib bin *~ */*~ */*/*~ */*/*/*~ */*.o */*/*.o */*/*/*.o #xgboost
$(RM) -rf build_tests *.gcov tests/cpp/xgboost_test