PYTHON := .venv/bin/python

.PHONY: setup analysis test verify

setup:
	python3 -m venv .venv
	$(PYTHON) -m pip install --upgrade pip
	$(PYTHON) -m pip install -r requirements.txt

analysis:
	@test -x $(PYTHON) || (echo "Run 'make setup' first." && exit 1)
	$(PYTHON) src/python/run_analysis.py

test:
	@test -x $(PYTHON) || (echo "Run 'make setup' first." && exit 1)
	$(PYTHON) -m unittest discover -s tests -v

verify: analysis test

