forked from RasaHQ/rasa-calm-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
93 lines (63 loc) · 2.25 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
.PHONY: install test run train test-passing help actions
-include .env
help:
@echo "install - install dependencies"
@echo "test - run tests"
@echo "run - run chatbot"
@echo "train - train chatbot"
.EXPORT_ALL_VARIABLES:
# ---------------------------------------------------
# rasa based targets
rasa-test: .EXPORT_ALL_VARIABLES
rasa test e2e e2e_tests
rasa-run: .EXPORT_ALL_VARIABLES
rasa inspect --debug
rasa-train: .EXPORT_ALL_VARIABLES
rasa train -c config/config.yml -d domain --data data
rasa-train-multistep: .EXPORT_ALL_VARIABLES
rasa train -c config/multistep-config.yml -d domain --data data
rasa-train-qdrant: .EXPORT_ALL_VARIABLES
rasa train -c config/qdrant-config.yml -d domain --data data
rasa-actions:
rasa run actions
rasa-test-passing: .EXPORT_ALL_VARIABLES
rasa test e2e e2e_tests/passing
rasa-test-flaky: .EXPORT_ALL_VARIABLES
rasa test e2e e2e_tests/flaky
rasa-test-failing: .EXPORT_ALL_VARIABLES
rasa test e2e e2e_tests/failing
rasa-test-multistep: .EXPORT_ALL_VARIABLES
rasa test e2e e2e_tests/multistep
rasa-test-one: .EXPORT_ALL_VARIABLES
rasa test e2e $(target) --debug
# ---------------------------------------------------
# poetry based targets
install:
poetry run python3 -m pip install -U pip
poetry install
run-duckling:
docker run --rm --name duckling_container -d -p 8000:8000 rasa/duckling
test: .EXPORT_ALL_VARIABLES
poetry run rasa test e2e e2e_tests
run: .EXPORT_ALL_VARIABLES run-duckling
poetry run rasa inspect --debug
train: .EXPORT_ALL_VARIABLES
poetry run rasa train -c config/config.yml -d domain --data data
train-multistep: .EXPORT_ALL_VARIABLES
poetry run rasa train -c config/multistep-config.yml -d domain --data data
train-qdrant: .EXPORT_ALL_VARIABLES
poetry run rasa train -c config/qdrant-config.yml -d domain --data data
actions:
poetry run rasa run actions
test-passing: .EXPORT_ALL_VARIABLES
poetry run rasa test e2e e2e_tests/passing
test-flaky: .EXPORT_ALL_VARIABLES
poetry run rasa test e2e e2e_tests/flaky
test-failing: .EXPORT_ALL_VARIABLES
poetry run rasa test e2e e2e_tests/failing
test-multistep: .EXPORT_ALL_VARIABLES
poetry run rasa test e2e e2e_tests/multistep
test-one: .EXPORT_ALL_VARIABLES
poetry run rasa test e2e $(target) --debug
stop-duckling:
docker stop duckling_container