ci(config.yml): add local_testing tests to codecov coverage check (#6183)

* ci(config.yml): add local_testing tests to codecov coverage check

* fix(config.yml): wait for local_testing to complete before uploading coverage
This commit is contained in:
Krish Dholakia 2024-10-12 18:51:40 -07:00 committed by GitHub
parent a208c275d6
commit d350733fa9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -103,12 +103,22 @@ jobs:
command: |
pwd
ls
python -m pytest -vv tests/local_testing --cov-report=xml -x --junitxml=test-results/junit.xml --durations=5 -k "not test_python_38.py and not router and not assistants"
python -m pytest -vv tests/local_testing --cov=litellm --cov-report=xml -x --junitxml=test-results/junit.xml --durations=5 -k "not test_python_38.py and not router and not assistants"
no_output_timeout: 120m
- run:
name: Rename the coverage files
command: |
mv coverage.xml local_testing_coverage.xml
mv .coverage local_testing_coverage
# Store test results
- store_test_results:
path: test-results
- persist_to_workspace:
root: .
paths:
- local_testing_coverage.xml
- local_testing_coverage
ui_endpoint_testing:
docker:
- image: cimg/python:3.11
@ -725,7 +735,7 @@ jobs:
python -m venv venv
. venv/bin/activate
pip install coverage
coverage combine llm_translation_coverage litellm_router_coverage
coverage combine llm_translation_coverage litellm_router_coverage local_testing_coverage
coverage xml
- codecov/upload:
file: ./coverage.xml
@ -965,6 +975,7 @@ workflows:
requires:
- llm_translation_testing
- litellm_router_testing
- local_testing
- db_migration_disable_update_check:
filters:
branches: