-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
39 lines (32 loc) · 849 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
33
34
35
36
37
38
39
.PHONY: setup_env
setup_env:
pip install --upgrade pip
pip install --prefer-binary .
.PHONY: run_ward_spending_scripts
run_ward_spending_scripts: setup_env
extract_ward_spending_data_from_pdfs && \
postprocess_and_combine_ward_spending_data && \
generate_ward_spending_geocoding
.PHONY: run_bikeway_installation_scripts
run_bikeway_installation_scripts: setup_env
generate_bikeway_installations_geocoding
.PHONY: setup_env_dev
setup_env_dev:
pip install --upgrade pip
pip install --prefer-binary -r requirements-dev.txt
.PHONY: test
test: setup_env setup_env_dev
PYTHONPATH="$${PWD}" \
pytest \
-m "not integration_test" \
--cov $${PWD}/src \
-v \
tests/
.PHONY: integration_test
integration_test: setup_env setup_env_dev
PYTHONPATH="$${PWD}" \
app_token=$(app_token) \
pytest \
-m "integration_test" \
-v \
tests/