From 7a7e39587a45ecb7001a87ae13960508a8685f02 Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Mon, 11 Sep 2023 08:27:09 -0700 Subject: [PATCH] cache pip deps --- .circleci/config.yml | 10 +++++++--- litellm/tests/test_completion.py | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4afdf7330..c621752b9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,7 +17,9 @@ jobs: echo "No changes to litellm or pyproject.toml. Skipping tests." circleci step halt fi - + - restore_cache: + keys: + - v1-dependencies-{{ checksum ".circleci/requirements.txt" }} - run: name: Install Dependencies command: | @@ -29,7 +31,10 @@ jobs: pip install mypy pip install openai[datalib] pip install -Uq chromadb==0.3.29 - + - save_cache: + paths: + - ./venv + key: v1-dependencies-{{ checksum ".circleci/requirements.txt" }} - run: name: Linting Testing command: | @@ -43,7 +48,6 @@ jobs: # Run pytest and generate JUnit XML report - parallelism: 10 - run: name: Run tests command: | diff --git a/litellm/tests/test_completion.py b/litellm/tests/test_completion.py index 040e1b13b..40bc14fab 100644 --- a/litellm/tests/test_completion.py +++ b/litellm/tests/test_completion.py @@ -386,7 +386,7 @@ def test_completion_azure(): # test_completion_azure() -# new azure test for using litellm. vars +# new azure test for using litellm. vars, # use the following vars in this test and make an azure_api_call # litellm.api_type = self.azure_api_type # litellm.api_base = self.azure_api_base