-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
105 lines (71 loc) · 2.8 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
94
95
96
97
98
99
100
101
102
103
104
105
.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 --e2e-results
test-flaky: .EXPORT_ALL_VARIABLES
poetry run rasa test e2e e2e_tests/flaky --e2e-results
test-failing: .EXPORT_ALL_VARIABLES
poetry run rasa test e2e e2e_tests/failing --e2e-results
test-multistep: .EXPORT_ALL_VARIABLES
poetry run rasa test e2e e2e_tests/multistep --e2e-results
test-one: .EXPORT_ALL_VARIABLES
poetry run rasa test e2e $(target) --debug
stop-duckling:
docker stop duckling_container
test-passing-assertions: .EXPORT_ALL_VARIABLES
poetry run rasa test e2e e2e_tests_with_assertions/passing --e2e-results
test-flaky-assertions: .EXPORT_ALL_VARIABLES
poetry run rasa test e2e e2e_tests_with_assertions/flaky --e2e-results
test-failing-assertions: .EXPORT_ALL_VARIABLES
poetry run rasa test e2e e2e_tests_with_assertions/failing --e2e-results
make test-passing-stub-custom-actions: .EXPORT_ALL_VARIABLES
poetry run rasa test e2e e2e_tests_with_stub_custom_actions/passing --e2e-results