-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (31 loc) · 830 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
.PHONY: setup run test clean
# Variables
PYTHON = python3
PIP = pip3
STREAMLIT = streamlit
# Setup commands
setup:
$(PIP) install -r requirements.txt
# Run the test pipeline
test:
$(PYTHON) src/test_pipeline.py
# Run the Streamlit app
run:
$(STREAMLIT) run src/app.py
# Clean up
clean:
find . -type d -name "__pycache__" -exec rm -r {} +
find . -type f -name "*.pyc" -delete
find . -type f -name "*.pyo" -delete
find . -type f -name "*.pyd" -delete
find . -type f -name ".DS_Store" -delete
# Full setup and run
all: setup test run
# Help command
help:
@echo "Available commands:"
@echo " make setup : Install dependencies"
@echo " make test : Run test pipeline"
@echo " make run : Start Streamlit app"
@echo " make clean : Clean up cache files"
@echo " make all : Full setup and run"