forked from lanagarmire/deepimpute
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
32 lines (27 loc) · 1001 Bytes
/
makefile
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
PYTHON_VERSION = 3
reformat:
# Requires black: pip3 install black
black deepimpute
black tests
black setup.py
pytest:
pytest
test:
# We run the tests separately instead of with unittest to
# avoid TensorFlow issue #8220 related to multiprocessing hanging.
python${PYTHON_VERSION} ./tests/util_test.py
python${PYTHON_VERSION} ./tests/maskedArrays_test.py
python${PYTHON_VERSION} ./tests/multinet_test.py
python${PYTHON_VERSION} ./tests/deepImpute_test.py
coverage:
coverage${PYTHON_VERSION} run -p --source ./deepimpute/ ./tests/deepImpute_test.py
coverage${PYTHON_VERSION} run -p --source ./deepimpute/ ./tests/util_test.py
coverage${PYTHON_VERSION} run -p --source ./deepimpute/ ./tests/maskedArrays_test.py
coverage${PYTHON_VERSION} run -p --source ./deepimpute/ ./tests/multinet_test.py
coverage${PYTHON_VERSION} combine
coverage${PYTHON_VERSION} html
echo "Results in: file://${CURDIR}/htmlcov/index.html"
publish:
pip install .
python setup.py sdist
twine upload dist/*