-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (23 loc) · 870 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
.PHONY: linux_deps deps lint shell server server_headless test docker_up docker_down
linux_deps:
sudo apt-get update && sudo apt-get install -y libomp-dev libgomp1
poetry install
deps:
brew install libomp
poetry install
lint:
poetry run ruff check .
shell:
poetry run python
server:
poetry run streamlit run app.py
server_headless:
poetry run streamlit run app.py --browser.serverAddress 0.0.0.0 --server.headless true
test:
poetry run -- ptw -- -s -vv $(args)
test_once:
poetry run pytest -s
docker_up:
docker build -t tele-churn . && docker run -d -e STREAMLIT_SERVER_COOKIE_SECRET=$${STREAMLIT_SERVER_COOKIE_SECRET} -e STREAMLIT_SERVER_PORT=$${STREAMLIT_SERVER_PORT} -p $${STREAMLIT_SERVER_PORT}:$${STREAMLIT_SERVER_PORT} tele-churn
docker_down:
docker ps -a -q --filter ancestor=tele-churn | xargs -I {} sh -c 'docker stop {} && docker rm {}'