-
Notifications
You must be signed in to change notification settings - Fork 132
199 lines (199 loc) · 8.81 KB
/
nlu_test_flow.yaml
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
name: NLU Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
env:
JSL_LICENSE: ${{ secrets.JSL_LICENSE }}
strategy:
matrix:
python-version: [3.7]
steps:
- uses: actions/setup-java@v1
with:
java-version: '1.8.0' # The JDK version to make available on the path.
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jd
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pypandoc scikit-learn
pip install wheel dataclasses pandas numpy pytest modin[ray] pyspark==3.2.0 spark-nlp
java -version
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
! echo 2 | update-alternatives --config java
- name: NLU Chunker Component tests
if: always()
run: |
python -m unittest discover -s './tests/nlu_core_tests/component_tests/chunker_tests' -p '*tests.py'
- name: NLU Classifier Cyber tests -
if: always()
run: |
python -m unittest 'tests/nlu_core_tests/component_tests/classifier_tests/cyber_tests.py'
- name: NLU Classifier E2E tests -
if: always()
run: |
python -m unittest 'tests/nlu_core_tests/component_tests/classifier_tests/e2e_tests.py'
- name: NLU Classifier Emotion tests -
if: always()
run: |
python -m unittest 'tests/nlu_core_tests/component_tests/classifier_tests/emotion_tests.py'
- name: NLU Classifier Language tests -
if: always()
run: |
python -m unittest 'tests/nlu_core_tests/component_tests/classifier_tests/language_tests.py'
- name: NLU Classifier NER tests -
if: always()
run: |
python -m unittest 'tests/nlu_core_tests/component_tests/classifier_tests/ner_tests.py'
- name: NLU Classifier POS tests -
if: always()
run: |
python -m unittest 'tests/nlu_core_tests/component_tests/classifier_tests/pos_tests.py'
- name: NLU Classifier Question tests -
if: always()
run: |
python -m unittest 'tests/nlu_core_tests/component_tests/classifier_tests/question_tests.py'
- name: NLU Classifier Sarcasm tests -
if: always()
run: |
python -m unittest 'tests/nlu_core_tests/component_tests/classifier_tests/sarcasm_tests.py'
- name: NLU Classifier Sentiment tests -
if: always()
run: |
python -m unittest 'tests/nlu_core_tests/component_tests/classifier_tests/sentiment_tests.py'
- name: NLU Classifier Sentiment test Imdb -
if: always()
run: |
python -m unittest 'tests/nlu_core_tests/component_tests/classifier_tests/sentiment_test_imdb.py'
- name: NLU Classifier Sentiment test Twitter -
if: always()
run: |
python -m unittest 'tests/nlu_core_tests/component_tests/classifier_tests/sentiment_test_twitter.py'
- name: NLU Classifier Spam tests -
if: always()
run: |
python -m unittest 'tests/nlu_core_tests/component_tests/classifier_tests/spam_tests.py'
- name: NLU Classifier Toxic tests -
if: always()
run: |
python -m unittest 'tests/nlu_core_tests/component_tests/classifier_tests/toxic_tests.py'
- name: NLU Classifier YAKE tests -
if: always()
run: |
python -m unittest 'tests/nlu_core_tests/component_tests/classifier_tests/yake_tests.py'
# - name: NLU Embed Component tests
# if: always()
# run: |
# python -m unittest discover -s './tests/nlu_core_tests/component_tests/embed_tests' -p '*tests.py'
- name: NLU Text Cleaner Component tests -
if: always()
run: |
python -m unittest discover -s './tests/nlu_core_tests/component_tests/pre_processing_tests' -p '*tests.py'
# - name: NLU Matcher Component tests # not yet converted in Spark 3
# if: always()
# run: |
# python -m unittest discover -s 'tests/nlu_core_tests/component_tests/matcher_tests' -p '*tests.py'
- name: NLU Typed Dependency Component tests -
if: always()
run: |
python -m unittest discover -s './tests/nlu_core_tests/component_tests/typed_dependency_tests' -p '*tests.py'
- name: NLU Untyped Dependency Component tests -
if: always()
run: |
python -m unittest discover -s './tests/nlu_core_tests/component_tests/untyped_dependency_tests' -p '*tests.py'
- name: NLU Pipe tests
if: always()
run: |
python -m unittest discover -s './tests/nlu_core_tests/pipeline_tests' -p '*tests.py'
- name: NLU Training sentiment tests
if: always()
run: |
python -m unittest discover -s './tests/nlu_core_tests/training_tests/classifiers' -p '*sentiment_dl*.py'
# Too hevy for Github actions
# - name: NLU Training classifier tests
# if: always()
# run: |
# python -m unittest discover -s './tests/nlu_core_tests/training_tests/classifiers' -p '*classifier_dl*.py'
# - name: NLU Training multi classifier tests
# if: always()
# run: |
# python -m unittest discover -s './tests/nlu_core_tests/training_tests/classifiers' -p '*multi*.py'
# - name: NLU Training NER tests
# if: always()
# run: |
# python -m unittest discover -s './tests/nlu_core_tests/training_tests/classifiers' -p '*ner*.py'
- name: NLU Training POS tests
if: always()
run: |
python -m unittest discover -s './tests/nlu_core_tests/training_tests/classifiers' -p '*pos*.py'
# - name: NLU Healthcare Verification tests
# if: always()
# run: |
# python -m unittest discover -s ./tests/nlu_hc_tests -p 'verification_tests.py'
# - name: NLU OCR tests
# if: always()
# run: |
# python -m unittest discover -s ./tests/nlu_ocr_tests -p '*tests.py'
# - name: NLU Healthcare Assertion DL tests
# if: always()
# run: |
# python -m unittest discover -s ./tests/nlu_hc_tests/component_tests/assertion_dl -p '*tests.py'
## - name: NLU Healthcare Contextual Parser tests
## if: always()
## run: |
## python -m unittest discover -s ./tests/nlu_hc_tests/component_tests/contextual_parser -p '*tests.py'
# - name: NLU Healthcare De Identification tests
# if: always()
# run: |
# python -m unittest discover -s ./tests/nlu_hc_tests/component_tests/de_identification -p '*tests.py'
# - name: NLU Healthcare Drug Normalizer tests
# if: always()
# run: |
# python -m unittest 'tests/nlu_hc_tests/component_tests/drug_normalizer/drug_normalizer_test.py'
# - name: NLU Healthcare Generic Classifier tests
# if: always()
# run: |
# python -m unittest discover -s ./tests/nlu_hc_tests/component_tests/generic_classifier -p '*tests.py'
# - name: NLU Healthcare Licensed Classifier tests
# if: always()
# run: |
# python -m unittest discover -s ./tests/nlu_hc_tests/component_tests/licensed_classifier -p '*tests.py'
# - name: NLU Healthcare Relation Extraction tests
# if: always()
# run: |
# python -m unittest discover -s ./tests/nlu_hc_tests/component_tests/relation_extraction -p '*tests.py'
# - name: NLU Healthcare Sentence Entity Resolver tests
# if: always()
# run: |
# python -m unittest discover -s ./tests/nlu_hc_tests/component_tests/sentence_entity_resolver -p '*tests.py'
## - name: NLU Healthcare Pipe tests
## if: always()
## run: |
## python -m unittest discover -s ./tests/nlu_hc_tests/pipe_tests -p '*tests.py'
## - name: NLU Healthcare Training Chunk Resolution tests
## if: always()
## run: |
## python -m unittest discover -s ./tests/nlu_hc_tests/training_tests/chunk_resolution -p '*tests.py'
# - name: NLU Healthcare Training Sentence Resolution tests
# if: always()
# run: |
# python -m unittest discover -s ./tests/nlu_hc_tests/training_tests/sentence_resolution -p '*tests.py'
## - name: NLU Saving and Loading tests
## if: always()
## run: |
## python -m unittest discover -s './tests/nlu_core_tests/training_tests/trained_pipe_tests' -p '*tests.py'
## - name: NLU Modin tests
## if: always()
## run: |
## python -m unittest discover -s './tests/modin' -p '*tests.py'