Skip to content

Commit

Permalink
chore: separate Python dependencies for development (langgenius#3198)
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenliang123 authored Apr 15, 2024
1 parent 8811677 commit 168bf61
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/api-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ jobs:
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path: ./api/requirements.txt
cache-dependency-path: |
./api/requirements.txt
./api/requirements-dev.txt
- 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
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
Expand Down
4 changes: 4 additions & 0 deletions api/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
coverage~=7.2.4
pytest~=7.3.1
pytest-mock~=3.11.1
pytest-benchmark~=4.0.0
4 changes: 0 additions & 4 deletions api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
coverage~=7.2.4
beautifulsoup4==4.12.2
flask~=3.0.1
Flask-SQLAlchemy~=3.0.5
Expand All @@ -16,9 +15,6 @@ tiktoken~=0.6.0
psycopg2-binary~=2.9.6
pycryptodome==3.19.1
python-dotenv==1.0.0
pytest~=7.3.1
pytest-mock~=3.11.1
pytest-benchmark~=4.0.0
Authlib==1.2.0
boto3==1.28.17
tenacity==8.2.2
Expand Down

0 comments on commit 168bf61

Please sign in to comment.