-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathnox_all.sh
executable file
·58 lines (48 loc) · 1.5 KB
/
nox_all.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
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env bash
# alias nox='python -m nox'
set -e
ABSOLUTE_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# make sure we start with a clean environment
echo "clean environment"
sudo rm -rf "$ABSOLUTE_PATH/.nox/*"
run_tests () {
wdir="$ABSOLUTE_PATH/$1"
echo ----------------------------------------------------------------------------------------------------------
echo $wdir
echo ----------------------------------------------------------------------------------------------------------
echo
cd "$wdir"
python -m nox -x
echo "done $(pwd)"
cd -
}
if [ $# -eq 0 ]
then
# run all tox tests
echo "run ALL nox tests"
run_tests "pandas-ml-common"
run_tests "pandas-ml-utils"
run_tests "pandas-ml-utils-torch"
run_tests "pandas-ta-quant"
run_tests "pandas-ta-quant-plot"
run_tests "pandas-ml-quant"
run_tests "pandas-quant-data-provider"
run_tests "pandas-ml-1ntegration-test"
# TODO run private integration tests as nox tests as well
# TODO finalize remaining tox tests: pandas-quant-data-provider, pandas-ml-1ntegration-test, quant plot
# cd "$ABSOLUTE_PATH/pandas-quant-data-provider" && tox && echo "done $(pwd)" && cd - || exit
# NOTE
# pandas-ml-airflow is in development
# pandas-ml-quant-rl is only experimental
# pandas-ml-keras is depricated
else
echo "run tests for $@"
for var in "$@"
do
run_tests $var
done
fi
# run spellchecker
pyspelling
# delete egg infos
find -name *.egg-info -exec rm -rf {} \;