🧪 test: level 2

This commit is contained in:
Florian Hönicke
2023-05-01 13:17:12 +02:00
parent e99131973d
commit 836255c204
2 changed files with 7 additions and 2 deletions

View File

@@ -232,7 +232,7 @@ metas:
lines = [line for line in lines if not any([pkg in line for pkg in ['jina', 'docarray', 'openai', 'pytest', 'gpt_3_5_turbo_api']])]
content_modified = f'''jina==3.15.1.dev14
docarray==0.21.0
openai>=0.26.0
openai==0.26.0
pytest
{os.linesep.join(lines)}'''
return {REQUIREMENTS_FILE_NAME: content_modified}
@@ -537,6 +537,9 @@ Test scenario:
@staticmethod
def replace_with_gpt_3_5_turbo_if_possible(pkg):
if pkg in ['nltk', 'textblob', 'spacy', 'transformers', 'textstat', 'gensim']:
if pkg in ['allennlp', 'bertopic', 'fasttext', 'flair', 'gensim', 'nltk',
'pattern', 'polyglot', 'pytorch-transformers', 'rasa', 'sentence-transformers',
'spacy', 'stanza', 'textblob', 'textstat', 'transformers']:
return 'gpt_3_5_turbo_api'
return pkg

View File

@@ -1,4 +1,6 @@
FROM jinaai/jina:3.14.1-py39-standard
# update pip
RUN pip install --upgrade pip
RUN apt-get update && apt-get install --no-install-recommends -y {{apt_get_packages}} && apt-get clean && rm -rf /var/lib/apt/lists/*