[853718]: / Makefile

Download this file

22 lines (17 with data), 525 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
.PHONY: test clean docs
clean:
# clean all temp runs
rm -rf .pytest_cache
rm -rf ./docs/build
rm -rf ./docs/source/*.md
rm -rf ./docs/source/api
rm -rf ./docs/source/notebooks
test: clean
pip install --quiet -r requirements.txt
pip install --quiet -r tests/requirements.txt
# run tests with coverage
python -m coverage run --source birl -m pytest birl tests -v
python -m coverage report
docs: clean
pip install --quiet -r docs/requirements.txt
python -m sphinx -b html -W --keep-going docs/source docs/build