-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile
27 lines (22 loc) · 1014 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
setup:
pip3 install pip --upgrade
pip3 install poetry
poetry config virtualenvs.create true
poetry install
setup-dev:
make install
# install pre commit hooks to check the code
# before committing.
poetry run pre-commit install
test:
AWS_DEFAULT_REGION=eu-west-1 poetry run pytest --disable-warnings
run-examples:
cd "${CURDIR}/examples/data_pipeline_simple" && poetry run cdk synth --app "python datajob_stack.py"
cd "${CURDIR}/examples/data_pipeline_parallel" && poetry run cdk synth --app "python datajob_stack.py"
cd "${CURDIR}/examples/data_pipeline_with_packaged_project" && poetry run python setup.py bdist_wheel && poetry run cdk synth --app "python datajob_stack.py"
# cd "${CURDIR}/examples/ml_pipeline_sagemaker_scikitlearn" && poetry run cdk synth --app "python datajob_stack.py"
# cd "${CURDIR}/examples/data_pipeline_pyspark" && poetry run python setup.py bdist_wheel && poetry run cdk synth --app "python datajob_stack.py"
gh-actions:
make install
make tests
make run-examples