Susanna Anil
add test
1b4e06d
raw
history blame contribute delete
658 Bytes
install:
pip install --upgrade pip &&\
pip install -r requirements.txt
format:
black app.py
lint:
pylint --disable=R,C app.py
test:
python -m pytest -vv test_app.py
run:
#run docker
docker run -p 127.0.0.1:8080:8080 1896dd6bda62
# deploy:
# #deploy
# aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 561744971673.dkr.ecr.us-east-1.amazonaws.com
# docker build -t fastapi-wiki .
# docker tag fastapi-wiki:latest 561744971673.dkr.ecr.us-east-1.amazonaws.com/fastapi-wiki:latest
# docker push 561744971673.dkr.ecr.us-east-1.amazonaws.com/fastapi-wiki:latest
all: install lint test format #deploy