Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
b4a170cb
Unverified
Commit
b4a170cb
authored
Jan 04, 2024
by
Bowen Liang
Committed by
GitHub
Jan 04, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: Properly cache pip packages (#1912)
parent
665318da
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
14 deletions
+5
-14
api-model-runtime-tests.yml
.github/workflows/api-model-runtime-tests.yml
+5
-14
No files found.
.github/workflows/api-model-runtime-tests.yml
View file @
b4a170cb
...
@@ -31,28 +31,19 @@ jobs:
...
@@ -31,28 +31,19 @@ jobs:
HUGGINGFACE_EMBEDDINGS_ENDPOINT_URL
:
c
HUGGINGFACE_EMBEDDINGS_ENDPOINT_URL
:
c
MOCK_SWITCH
:
true
MOCK_SWITCH
:
true
steps
:
steps
:
-
name
:
Checkout code
-
name
:
Checkout code
uses
:
actions/checkout@v
2
uses
:
actions/checkout@v
4
-
name
:
Set up Python
-
name
:
Set up Python
uses
:
actions/setup-python@v
2
uses
:
actions/setup-python@v
5
with
:
with
:
python-version
:
'
3.10'
python-version
:
'
3.10'
cache
:
'
pip'
-
name
:
Cache pip dependencies
cache-dependency-path
:
./api/requirements.txt
uses
:
actions/cache@v2
with
:
path
:
~/.cache/pip
key
:
${{ runner.os }}-pip-${{ hashFiles('api/requirements.txt') }}
restore-keys
:
${{ runner.os }}-pip-
-
name
:
Install dependencies
-
name
:
Install dependencies
run
:
|
run
:
pip install -r ./api/requirements.txt
python -m pip install --upgrade pip
pip install pytest
pip install -r api/requirements.txt
-
name
:
Run pytest
-
name
:
Run pytest
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment