run unit tests 1st

This commit is contained in:
Ishaan Jaff 2024-11-22 16:15:37 -08:00
parent 06da8a5fbc
commit 35040f12be

View file

@ -1094,26 +1094,6 @@ jobs:
working_directory: ~/project
steps:
- 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:
name: Install Docker CLI (In case it's not already installed)
command: |
@ -1157,6 +1137,15 @@ jobs:
pip install "PyGithub==1.59.1"
pip install "google-cloud-aiplatform==1.59.0"
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:
name: Build Docker image
command: docker build -t my-app:latest -f ./docker/Dockerfile.database .
@ -1192,7 +1181,7 @@ jobs:
- run:
name: Wait for app to be ready
command: dockerize -wait http://localhost:4000 -timeout 5m
# New steps to run Node.js test
# New steps to run Node.js test
- run:
name: Install Node.js
command: |