-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
68 lines (46 loc) · 1.46 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
.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.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-one: .EXPORT_ALL_VARIABLES
rasa test e2e $(target) --debug
# ---------------------------------------------------
# poetry based targets
install:
poetry install
test: .EXPORT_ALL_VARIABLES
poetry run rasa test e2e e2e_tests
run: .EXPORT_ALL_VARIABLES
poetry run rasa inspect --debug
train: .EXPORT_ALL_VARIABLES
poetry run rasa train -c 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-one: .EXPORT_ALL_VARIABLES
poetry run rasa test e2e $(target) --debug