7
7
pull_request :
8
8
branches :
9
9
- main
10
- - runners-1.0
11
10
schedule :
12
11
- cron : " 0 0 * * 1/2"
13
12
@@ -67,156 +66,156 @@ jobs:
67
66
- tests/integration/frameworks/test_frameworks.py
68
67
runner: &runner
69
68
- *related
70
- - bentoml/_internal/runner/**
71
- - bentoml/_internal/models/**
69
+ - src/ bentoml/_internal/runner/**
70
+ - src/ bentoml/_internal/models/**
72
71
catboost:
73
72
- *runner
74
- - bentoml/catboost.py
75
- - bentoml/_internal/frameworks/catboost.py
73
+ - src/ bentoml/catboost.py
74
+ - src/ bentoml/_internal/frameworks/catboost.py
76
75
- tests/integration/frameworks/models/catboost.py
77
76
- tests/integration/frameworks/test_frameworks.py
78
77
detectron2:
79
78
- *runner
80
- - bentoml/detectron.py
81
- - bentoml/_internal/frameworks/detectron.py
79
+ - src/ bentoml/detectron.py
80
+ - src/ bentoml/_internal/frameworks/detectron.py
82
81
- tests/integration/frameworks/test_detectron2_impl.py
83
82
easyocr:
84
83
- *runner
85
- - bentoml/easyocr.py
86
- - bentoml/_internal/frameworks/easyocr.py
84
+ - src/ bentoml/easyocr.py
85
+ - src/ bentoml/_internal/frameworks/easyocr.py
87
86
- tests/integration/frameworks/test_easyocr_impl.py
88
87
evalml:
89
88
- *runner
90
- - bentoml/evalml.py
91
- - bentoml/_internal/frameworks/evalml.py
89
+ - src/ bentoml/evalml.py
90
+ - src/ bentoml/_internal/frameworks/evalml.py
92
91
- tests/integration/frameworks/test_evalml_impl.py
93
92
fasttext:
94
93
- *runner
95
- - bentoml/fasttext.py
96
- - bentoml/_internal/frameworks/fasttext.py
94
+ - src/ bentoml/fasttext.py
95
+ - src/ bentoml/_internal/frameworks/fasttext.py
97
96
- tests/integration/frameworks/test_fasttext_impl.py
98
97
gluon:
99
98
- *runner
100
- - bentoml/gluon.py
101
- - bentoml/_internal/frameworks/gluon.py
99
+ - src/ bentoml/gluon.py
100
+ - src/ bentoml/_internal/frameworks/gluon.py
102
101
- tests/integration/frameworks/test_gluon_impl.py
103
102
h2o:
104
103
- *runner
105
- - bentoml/h2o.py
106
- - bentoml/_internal/frameworks/h2o.py
104
+ - src/ bentoml/h2o.py
105
+ - src/ bentoml/_internal/frameworks/h2o.py
107
106
- tests/integration/frameworks/test_h2o_impl.py
108
107
lightgbm:
109
108
- *runner
110
- - bentoml/lightgbm.py
111
- - bentoml/_internal/frameworks/lightgbm.py
109
+ - src/ bentoml/lightgbm.py
110
+ - src/ bentoml/_internal/frameworks/lightgbm.py
112
111
- tests/integration/frameworks/models/lightgbm.py
113
112
- tests/integration/frameworks/test_frameworks.py
114
113
mlflow:
115
114
- *runner
116
- - bentoml/mlflow.py
117
- - bentoml/_internal/frameworks/mlflow.py
115
+ - src/ bentoml/mlflow.py
116
+ - src/ bentoml/_internal/frameworks/mlflow.py
118
117
- tests/integration/frameworks/mlflow
119
118
fastai:
120
119
- *runner
121
- - bentoml/fastai.py
122
- - bentoml/_internal/frameworks/fastai.py
123
- - bentoml/_internal/frameworks/common/pytorch.py
120
+ - src/ bentoml/fastai.py
121
+ - src/ bentoml/_internal/frameworks/fastai.py
122
+ - src/ bentoml/_internal/frameworks/common/pytorch.py
124
123
- tests/integration/frameworks/test_frameworks.py
125
124
- tests/integration/frameworks/test_fastai_unit.py
126
125
onnx:
127
126
- *runner
128
- - bentoml/onnx.py
129
- - bentoml/_internal/frameworks/onnx.py
127
+ - src/ bentoml/onnx.py
128
+ - src/ bentoml/_internal/frameworks/onnx.py
130
129
- tests/integration/frameworks/models/onnx.py
131
130
- tests/integration/frameworks/test_frameworks.py
132
131
onnxmlir:
133
132
- *runner
134
- - bentoml/onnxmlir.py
135
- - bentoml/_internal/frameworks/onnxmlir.py
133
+ - src/ bentoml/onnxmlir.py
134
+ - src/ bentoml/_internal/frameworks/onnxmlir.py
136
135
- tests/integration/frameworks/test_onnxmlir_impl.py
137
136
paddle:
138
137
- *runner
139
- - bentoml/paddle.py
140
- - bentoml/_internal/frameworks/paddle.py
138
+ - src/ bentoml/paddle.py
139
+ - src/ bentoml/_internal/frameworks/paddle.py
141
140
- tests/integration/frameworks/paddle
142
141
picklable_model:
143
142
- *runner
144
- - bentoml/picklable_model.py
145
- - bentoml/_internal/frameworks/picklable_model.py
143
+ - src/ bentoml/picklable_model.py
144
+ - src/ bentoml/_internal/frameworks/picklable_model.py
146
145
- tests/integration/frameworks/picklable_model
147
146
pycaret:
148
147
- *runner
149
- - bentoml/pycaret.py
150
- - bentoml/_internal/frameworks/pycaret.py
148
+ - src/ bentoml/pycaret.py
149
+ - src/ bentoml/_internal/frameworks/pycaret.py
151
150
- tests/integration/frameworks/test_pycaret_impl.py
152
151
pyspark_mllib:
153
152
- *runner
154
- - bentoml/pyspark.py
155
- - bentoml/_internal/frameworks/pyspark.py
153
+ - src/ bentoml/pyspark.py
154
+ - src/ bentoml/_internal/frameworks/pyspark.py
156
155
- tests/integration/frameworks/test_pyspark_impl.py
157
156
pytorch:
158
157
- *runner
159
- - bentoml/pytorch.py
160
- - bentoml/_internal/frameworks/common/pytorch.py
161
- - bentoml/_internal/frameworks/pytorch.py
158
+ - src/ bentoml/pytorch.py
159
+ - src/ bentoml/_internal/frameworks/common/pytorch.py
160
+ - src/ bentoml/_internal/frameworks/pytorch.py
162
161
- tests/integration/frameworks/test_pytorch_unit.py
163
162
- tests/integration/frameworks/test_frameworks.py
164
163
torchscript:
165
164
- *runner
166
- - bentoml/torchscript.py
167
- - bentoml/_internal/frameworks/common/pytorch.py
168
- - bentoml/_internal/frameworks/torchscript.py
165
+ - src/ bentoml/torchscript.py
166
+ - src/ bentoml/_internal/frameworks/common/pytorch.py
167
+ - src/ bentoml/_internal/frameworks/torchscript.py
169
168
- tests/integration/frameworks/test_torchscript_impl.py
170
169
pytorch_lightning:
171
170
- *runner
172
- - bentoml/pytorch.py
173
- - bentoml/pytorch_lightning.py
174
- - bentoml/_internal/frameworks/common/pytorch.py
175
- - bentoml/_internal/frameworks/torchscript.py
176
- - bentoml/_internal/frameworks/pytorch_lightning.py
171
+ - src/ bentoml/pytorch.py
172
+ - src/ bentoml/pytorch_lightning.py
173
+ - src/ bentoml/_internal/frameworks/common/pytorch.py
174
+ - src/ bentoml/_internal/frameworks/torchscript.py
175
+ - src/ bentoml/_internal/frameworks/pytorch_lightning.py
177
176
- tests/integration/frameworks/test_pytorch_lightning_impl.py
178
177
sklearn:
179
178
- *runner
180
- - bentoml/sklearn.py
181
- - bentoml/_internal/frameworks/sklearn.py
179
+ - src/ bentoml/sklearn.py
180
+ - src/ bentoml/_internal/frameworks/sklearn.py
182
181
- tests/integration/frameworks/test_sklearn_impl.py
183
182
spacy:
184
183
- *runner
185
- - bentoml/spacy.py
186
- - bentoml/_internal/frameworks/spacy.py
184
+ - src/ bentoml/spacy.py
185
+ - src/ bentoml/_internal/frameworks/spacy.py
187
186
- tests/integration/frameworks/spacy
188
187
statsmodels:
189
188
- *runner
190
- - bentoml/statsmodels.py
191
- - bentoml/_internal/frameworks/statsmodels.py
189
+ - src/ bentoml/statsmodels.py
190
+ - src/ bentoml/_internal/frameworks/statsmodels.py
192
191
- tests/integration/frameworks/test_statsmodels_impl.py
193
192
tf1: &tf1
194
193
- *runner
195
- - bentoml/tensorflow.py
196
- - bentoml/_internal/frameworks/tensorflow_v1.py
194
+ - src/ bentoml/tensorflow.py
195
+ - src/ bentoml/_internal/frameworks/tensorflow_v1.py
197
196
- tests/integration/frameworks/test_tensorflow_v1_impl.py
198
197
tf2: &tf2
199
198
- *runner
200
- - bentoml/tensorflow.py
201
- - bentoml/_internal/frameworks/tensorflow_v2.py
199
+ - src/ bentoml/tensorflow.py
200
+ - src/ bentoml/_internal/frameworks/tensorflow_v2.py
202
201
- tests/integration/frameworks/models/tensorflow_v2.py
203
202
- tests/integration/frameworks/tensorflow_v2_unit.py
204
203
keras_tf2:
205
204
- *runner
206
205
- *tf2
207
- - bentoml/keras.py
208
- - bentoml/_internal/frameworks/keras.py
206
+ - src/ bentoml/keras.py
207
+ - src/ bentoml/_internal/frameworks/keras.py
209
208
- tests/integration/frameworks/models/keras.py
210
209
- tests/integration/frameworks/test_frameworks.py
211
210
transformers:
212
211
- *runner
213
- - bentoml/transformers.py
214
- - bentoml/_internal/frameworks/transformers.py
212
+ - src/ bentoml/transformers.py
213
+ - src/ bentoml/_internal/frameworks/transformers.py
215
214
- tests/integration/frameworks/test_transformers_impl.py
216
215
xgboost:
217
216
- *runner
218
- - bentoml/xgboost.py
219
- - bentoml/_internal/frameworks/xgboost.py
217
+ - src/ bentoml/xgboost.py
218
+ - src/ bentoml/_internal/frameworks/xgboost.py
220
219
- tests/integration/frameworks/models/xgboost.py
221
220
- tests/integration/frameworks/test_frameworks.py
222
221
@@ -393,7 +392,7 @@ jobs:
393
392
- name : Run unit test for fastai
394
393
shell : bash
395
394
run : |
396
- OPTS=(--cov=bentoml --cov-config=./pyproject.toml --cov-report=xml:"fastai.unit.xml" --cov-report term-missing:skip-covered)
395
+ OPTS=(--cov=src/ bentoml --cov-config=./pyproject.toml --cov-report=xml:"fastai.unit.xml" --cov-report term-missing:skip-covered)
397
396
python -m pytest ./tests/integration/frameworks/test_fastai_unit.py "${OPTS[@]}" || ERR=1
398
397
if [ $ERR -eq 1 ]; then
399
398
echo "unit tests for fastai failed!"
@@ -884,7 +883,7 @@ jobs:
884
883
- name : Run unit test for pytorch
885
884
shell : bash
886
885
run : |
887
- OPTS=(--cov=bentoml --cov-config=./pyproject.toml --cov-report=xml:"pytorch.unit.xml" --cov-report term-missing:skip-covered)
886
+ OPTS=(--cov=src/ bentoml --cov-config=./pyproject.toml --cov-report=xml:"pytorch.unit.xml" --cov-report term-missing:skip-covered)
888
887
python -m pytest ./tests/integration/frameworks/test_pytorch_unit.py "${OPTS[@]}" || ERR=1
889
888
if [ $ERR -eq 1 ]; then
890
889
echo "unit tests for pytorch failed!"
@@ -1198,7 +1197,7 @@ jobs:
1198
1197
- name : Run unit test for tensorflow_v2
1199
1198
shell : bash
1200
1199
run : |
1201
- OPTS=(--cov=bentoml --cov-config=./pyproject.toml --cov-report=xml:"tf2.unit.xml" --cov-report term-missing:skip-covered)
1200
+ OPTS=(--cov=src/ bentoml --cov-config=./pyproject.toml --cov-report=xml:"tf2.unit.xml" --cov-report term-missing:skip-covered)
1202
1201
python -m pytest ./tests/integration/frameworks/test_tensorflow_v2_unit.py "${OPTS[@]}" || ERR=1
1203
1202
if [ $ERR -eq 1 ]; then
1204
1203
echo "unit tests for tensorflow_v2 failed!"
@@ -1208,7 +1207,7 @@ jobs:
1208
1207
- name : Run tensorflow_v2 without eager execution
1209
1208
shell : bash
1210
1209
run : |
1211
- OPTS=(--cov=bentoml --cov-config=./pyproject.toml --cov-report=xml:"tf2.unit.no_eager.xml" --cov-report term-missing:skip-covered --disable-tf-eager-execution)
1210
+ OPTS=(--cov=src/ bentoml --cov-config=./pyproject.toml --cov-report=xml:"tf2.unit.no_eager.xml" --cov-report term-missing:skip-covered --disable-tf-eager-execution)
1212
1211
python -m pytest ./tests/integration/frameworks/test_tensorflow_v2_unit.py "${OPTS[@]}" || ERR=1
1213
1212
if [ $ERR -eq 1 ]; then
1214
1213
echo "unit tests for tensorflow_v2 failed!"
@@ -1261,7 +1260,7 @@ jobs:
1261
1260
- name : Run unit test for transformers
1262
1261
shell : bash
1263
1262
run : |
1264
- OPTS=(--cov=bentoml --cov-config=./pyproject.toml --cov-report=xml:"transformers.unit.xml" --cov-report term-missing:skip-covered)
1263
+ OPTS=(--cov=src/ bentoml --cov-config=./pyproject.toml --cov-report=xml:"transformers.unit.xml" --cov-report term-missing:skip-covered)
1265
1264
python -m pytest ./tests/integration/frameworks/test_transformers_unit.py "${OPTS[@]}" || ERR=1
1266
1265
if [ $ERR -eq 1 ]; then
1267
1266
echo "unit tests for transformers failed!"
0 commit comments