-
Notifications
You must be signed in to change notification settings - Fork 7
/
run_ci_examples.sh
executable file
·46 lines (39 loc) · 1.08 KB
/
run_ci_examples.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
set -e
TUNE=1
for i in "$@"
do
echo "$i"
case "$i" in
--no-tune)
TUNE=0
;;
*)
echo "unknown arg, $i"
exit 1
;;
esac
done
pushd lightgbm_ray/examples/ || exit 1
ray stop || true
echo "================"
echo "Running examples"
echo "================"
echo "running readme.py" && python readme.py
echo "running readme_sklearn_api.py" && python readme_sklearn_api.py
echo "running simple.py" && python simple.py --smoke-test
echo "running simple_predict.py" && python simple_predict.py
echo "running simple_dask.py" && python simple_dask.py --smoke-test
echo "running simple_modin.py" && python simple_modin.py --smoke-test
echo "running simple_ray_dataset.py" && python simple_ray_dataset.py --smoke-test
if [ "$TUNE" = "1" ]; then
echo "running simple_tune.py" && python simple_tune.py --smoke-test
else
echo "skipping tune example"
fi
echo "running train_on_test_data.py" && python train_on_test_data.py --smoke-test
popd
pushd lightgbm_ray/tests
echo "running examples with Ray Client"
python -m pytest -v --durations=0 -x test_client.py
popd || exit 1