forked from modin-project/modin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-tests.sh
executable file
·48 lines (45 loc) · 1.81 KB
/
run-tests.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
47
48
#!/usr/bin/env bash
arg=$1
shift
if [ "$arg" == "" ]; then
arg="all"
fi
if [ "$arg" == "ray" ] || [ "$arg" == "all" ]; then
echo "Running Ray tests"
aws s3 cp --no-sign-request s3://modin-testing/testmondata_ray .
mv testmondata_ray .testmondata
MODIN_ENGINE=ray pytest --testmon-forceselect modin/pandas/test/ $@
# This happens on sqlite error from testmon if too many files were changed.
if [ "$?" -eq 3 ]; then
rm .testmondata
MODIN_ENGINE=ray pytest --testmon-forceselect modin/pandas/test/ $@
fi
fi
if [ "$arg" == "python" ] || [ "$arg" == "all" ]; then
echo "Running Python tests"
aws s3 cp --no-sign-request s3://modin-testing/testmondata_python .
mv testmondata_python .testmondata
MODIN_ENGINE=python pytest --testmon-forceselect modin/pandas/test/ $@
# This happens on sqlite error from testmon if too many files were changed.
if [ "$?" -eq 3 ]; then
rm .testmondata
MODIN_ENGINE=python pytest --testmon-forceselect modin/pandas/test/ $@
fi
fi
if [ "$arg" == "dask" ] || [ "$arg" == "all" ]; then
echo "Running Dask tests"
aws s3 cp --no-sign-request s3://modin-testing/testmondata_dask .
mv testmondata_dask .testmondata
MODIN_ENGINE=dask pytest --testmon-forceselect modin/pandas/test/ $@
# This happens on sqlite error from testmon if too many files were changed.
if [ "$?" -eq 3 ]; then
rm .testmondata
MODIN_ENGINE=dask pytest --testmon-forceselect modin/pandas/test/ $@
fi
fi
if [ "$arg" == "pyarrow" ] || [ "$arg" == "all" ]; then
echo "Running Pyarrow tests"
aws s3 cp --no-sign-request s3://modin-testing/testmondata_pyarrow .
mv testmondata_pyarrow .testmondata
MODIN_BACKEND=pyarrow MODIN_EXPERIMENTAL=1 pytest --testmon-forceselect modin/pandas/test/test_io.py::test_from_csv $@
fi