mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-06-30 18:25:14 +08:00
chore: separate Python dependencies for development (#3198)
This commit is contained in:
parent
8811677154
commit
168bf61b23
6
.github/workflows/api-tests.yml
vendored
6
.github/workflows/api-tests.yml
vendored
@ -37,10 +37,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.10'
|
||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
cache-dependency-path: ./api/requirements.txt
|
cache-dependency-path: |
|
||||||
|
./api/requirements.txt
|
||||||
|
./api/requirements-dev.txt
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pip install -r ./api/requirements.txt
|
run: pip install -r ./api/requirements.txt -r ./api/requirements-dev.txt
|
||||||
|
|
||||||
- name: Run ModelRuntime
|
- name: Run ModelRuntime
|
||||||
run: pytest api/tests/integration_tests/model_runtime/anthropic api/tests/integration_tests/model_runtime/azure_openai api/tests/integration_tests/model_runtime/openai api/tests/integration_tests/model_runtime/chatglm api/tests/integration_tests/model_runtime/google api/tests/integration_tests/model_runtime/xinference api/tests/integration_tests/model_runtime/huggingface_hub/test_llm.py
|
run: pytest api/tests/integration_tests/model_runtime/anthropic api/tests/integration_tests/model_runtime/azure_openai api/tests/integration_tests/model_runtime/openai api/tests/integration_tests/model_runtime/chatglm api/tests/integration_tests/model_runtime/google api/tests/integration_tests/model_runtime/xinference api/tests/integration_tests/model_runtime/huggingface_hub/test_llm.py
|
||||||
|
4
api/requirements-dev.txt
Normal file
4
api/requirements-dev.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
coverage~=7.2.4
|
||||||
|
pytest~=7.3.1
|
||||||
|
pytest-mock~=3.11.1
|
||||||
|
pytest-benchmark~=4.0.0
|
@ -1,4 +1,3 @@
|
|||||||
coverage~=7.2.4
|
|
||||||
beautifulsoup4==4.12.2
|
beautifulsoup4==4.12.2
|
||||||
flask~=3.0.1
|
flask~=3.0.1
|
||||||
Flask-SQLAlchemy~=3.0.5
|
Flask-SQLAlchemy~=3.0.5
|
||||||
@ -16,9 +15,6 @@ tiktoken~=0.6.0
|
|||||||
psycopg2-binary~=2.9.6
|
psycopg2-binary~=2.9.6
|
||||||
pycryptodome==3.19.1
|
pycryptodome==3.19.1
|
||||||
python-dotenv==1.0.0
|
python-dotenv==1.0.0
|
||||||
pytest~=7.3.1
|
|
||||||
pytest-mock~=3.11.1
|
|
||||||
pytest-benchmark~=4.0.0
|
|
||||||
Authlib==1.2.0
|
Authlib==1.2.0
|
||||||
boto3==1.28.17
|
boto3==1.28.17
|
||||||
tenacity==8.2.2
|
tenacity==8.2.2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user