-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (40 loc) · 1.58 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
install:
@pip install -e .
# @pip install . # for procduction
clean:
@rm -f */version.txt
@rm -f .coverage
@rm -f */.ipynb_checkpoints
@rm -Rf build
@rm -Rf */__pycache__
@rm -Rf */*.pyc
@rm -Rf */*egg-info
all: install clean
run_train:
python -c 'from modules.interface.main import train; train("Paris")'
run_api:
@python modules/api/fast_api.py
test:
@pytest -v tests
#################### TESTS #####################
test_cloud_training: test_gcp_setup test_gcp_project test_gcp_bucket test_big_query test_cloud_data
test_gcp_setup:
@TEST_ENV=development pytest \
tests/setup/test_gcp_setup.py::TestGcpSetup::test_setup_key_env \
tests/setup/test_gcp_setup.py::TestGcpSetup::test_setup_key_path \
tests/setup/test_gcp_setup.py::TestGcpSetup::test_code_get_project
test_gcp_project:
@TEST_ENV=development pytest \
tests/setup/test_gcp_setup.py::TestGcpSetup::test_setup_project_id
test_gcp_bucket:
@TEST_ENV=development pytest \
tests/setup/test_gcp_setup.py::TestGcpSetup::test_setup_bucket_exists \
tests/setup/test_gcp_setup.py::TestGcpSetup::test_setup_bucket_name
test_big_query:
@TEST_ENV=development pytest \
tests/cloud_data/test_cloud_data.py::TestCloudData::test_big_query_dataset_variable_exists \
tests/cloud_data/test_cloud_data.py::TestCloudData::test_cloud_data_create_dataset \
tests/cloud_data/test_cloud_data.py::TestCloudData::test_cloud_data_create_table \
tests/cloud_data/test_cloud_data.py::TestCloudData::test_cloud_data_table_content
test_cloud_data:
@TEST_ENV=development pytest tests/cloud_data/test_cloud_data.py::TestCloudData::test_cloud_data_bq_chunks