forked from phoenix/litellm-mirror
run unit tests 1st
This commit is contained in:
parent
06da8a5fbc
commit
35040f12be
1 changed files with 10 additions and 21 deletions
|
@ -1094,26 +1094,6 @@ jobs:
|
||||||
working_directory: ~/project
|
working_directory: ~/project
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
# New steps to run Node.js test
|
|
||||||
- run:
|
|
||||||
name: Install Node.js
|
|
||||||
command: |
|
|
||||||
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
|
|
||||||
sudo apt-get install -y nodejs
|
|
||||||
node --version
|
|
||||||
npm --version
|
|
||||||
|
|
||||||
- run:
|
|
||||||
name: Install Node.js dependencies
|
|
||||||
command: |
|
|
||||||
npm install @google-cloud/vertexai
|
|
||||||
npm install --save-dev jest
|
|
||||||
|
|
||||||
- run:
|
|
||||||
name: Run Vertex AI tests
|
|
||||||
command: |
|
|
||||||
npx jest tests/pass_through_tests/test_vertex.test.js --verbose
|
|
||||||
no_output_timeout: 30m
|
|
||||||
- run:
|
- run:
|
||||||
name: Install Docker CLI (In case it's not already installed)
|
name: Install Docker CLI (In case it's not already installed)
|
||||||
command: |
|
command: |
|
||||||
|
@ -1157,6 +1137,15 @@ jobs:
|
||||||
pip install "PyGithub==1.59.1"
|
pip install "PyGithub==1.59.1"
|
||||||
pip install "google-cloud-aiplatform==1.59.0"
|
pip install "google-cloud-aiplatform==1.59.0"
|
||||||
pip install anthropic
|
pip install anthropic
|
||||||
|
python -m pip install -r requirements.txt
|
||||||
|
# Run pytest and generate JUnit XML report
|
||||||
|
- run:
|
||||||
|
name: Run tests
|
||||||
|
command: |
|
||||||
|
pwd
|
||||||
|
ls
|
||||||
|
python -m pytest -vv tests/pass_through_unit_tests --cov=litellm --cov-report=xml -x -s -v --junitxml=test-results/junit.xml --durations=5
|
||||||
|
no_output_timeout: 120m
|
||||||
- run:
|
- run:
|
||||||
name: Build Docker image
|
name: Build Docker image
|
||||||
command: docker build -t my-app:latest -f ./docker/Dockerfile.database .
|
command: docker build -t my-app:latest -f ./docker/Dockerfile.database .
|
||||||
|
@ -1192,7 +1181,7 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
name: Wait for app to be ready
|
name: Wait for app to be ready
|
||||||
command: dockerize -wait http://localhost:4000 -timeout 5m
|
command: dockerize -wait http://localhost:4000 -timeout 5m
|
||||||
# New steps to run Node.js test
|
# New steps to run Node.js test
|
||||||
- run:
|
- run:
|
||||||
name: Install Node.js
|
name: Install Node.js
|
||||||
command: |
|
command: |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue