Skip to content

Commit 88b1bda

Browse files
Add test script for simple execution of all unit tests (#948)
* Resolves #947 * Simplify new/existing developer experience
1 parent 308fd52 commit 88b1bda

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

run-tests.sh

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/usr/bin/env bash
2+
3+
arg=$arg
4+
5+
if [ "$arg" == "" ]; then
6+
arg="all"
7+
fi
8+
9+
if [ "$arg" == "ray" ] || [ "$arg" == "all" ]; then
10+
echo "Running Ray tests"
11+
aws s3 cp --no-sign-request s3://modin-testing/testmondata_ray .
12+
mv testmondata_ray .testmondata
13+
MODIN_ENGINE=ray pytest modin/pandas/test/
14+
fi
15+
if [ "$arg" == "python" ] || [ "$arg" == "all" ]; then
16+
echo "Running Python tests"
17+
aws s3 cp --no-sign-request s3://modin-testing/testmondata_python .
18+
mv testmondata_python .testmondata
19+
MODIN_ENGINE=python pytest modin/pandas/test/
20+
fi
21+
if [ "$arg" == "dask" ] || [ "$arg" == "all" ]; then
22+
echo "Running Dask tests"
23+
aws s3 cp --no-sign-request s3://modin-testing/testmondata_dask .
24+
mv testmondata_dask .testmondata
25+
MODIN_ENGINE=dask pytest modin/pandas/test/test_io.py
26+
fi
27+
if [ "$arg" == "pyarrow" ] || [ "$arg" == "all" ]; then
28+
echo "Running Pyarrow tests"
29+
aws s3 cp --no-sign-request s3://modin-testing/testmondata_pyarrow .
30+
mv testmondata_pyarrow .testmondata
31+
MODIN_BACKEND=pyarrow MODIN_EXPERIMENTAL=1 pytest modin/pandas/test/test_io.py::test_from_csv
32+
fi

0 commit comments

Comments
 (0)