-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
43 lines (36 loc) · 1.11 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
# Set default target
.DEFAULT_GOAL := help
## Python
PYTHON := python3
PIP := pip
VENV_NAME := venv
# Help target
help:
@echo "Usage: make [target]"
@echo ""
@echo "Targets:"
@echo " 1. install Install dependencies and set up the environment (should be run first)"
@echo " 2. run_single_agent Run the single-agent interaction example script"
@echo " 3. run_multi_agent Run the multi-agent interaction example script"
@echo " 4. test Run the tests"
@echo " 5. clean Remove the virtual environment and its contents"
# Install dependencies and set up the environment
install:
$(PYTHON) -m venv $(VENV_NAME)
. $(VENV_NAME)/bin/activate && \
$(PIP) install -r requirements.txt
# Run the single-agent interaction example script
run_single_agent:
. $(VENV_NAME)/bin/activate && \
$(PYTHON) single_agent_example.py
# Run the multi-agent interaction example script
run_multi_agent:
. $(VENV_NAME)/bin/activate && \
$(PYTHON) multi_agent_example.py
# Run the tests
test:
. $(VENV_NAME)/bin/activate && \
pytest -v tests/
# Clean the virtual environment
clean:
rm -rf $(VENV_NAME)