-
Notifications
You must be signed in to change notification settings - Fork 448
/
Makefile
41 lines (32 loc) · 988 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
39
40
41
# Define shell to use
#SHELL := /bin/bash
# Define Python interpreter
#PYTHON_MAC := python3
#PYTHON_WINDOWS := python
# Define virtual environment directory
VENV := env
# Default target executed when no arguments are given to make.
default: test
test: ## run tests with pytest.
@echo "Running tests..."
@pytest --cov=salesgpt --cov-report=term-missing --cov-report=html
@echo "Tests executed."
test_tools:
@echo "Running tests in tests/test_tools.py..."
@pytest tests/test_tools.py --cov=salesgpt --cov-report=term-missing --cov-report=html
@echo "Tests in tests/test_tools.py executed."
# Set up the development environment
setup:
pip install -U pip setuptools
pip install poetry
@echo "Poetry installed."
@echo "Installing project dependencies using Poetry."
poetry install
@echo "Dependencies installed."
# Clean up the environment
clean:
@echo "Cleaning up..."
rm -rf $(VENV)
rm -rf SalesGPT
@echo "Environment cleaned up."
.PHONY: default setup test clean