From 44a344e1254d788a4547ee275d97dcc38bc1c16e Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Thu, 4 Apr 2024 10:32:04 -0700 Subject: [PATCH] ci(config.yml): reorder steps - install deps first --- .circleci/config.yml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a1f500aa0..f11295e75 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,23 +7,6 @@ jobs: steps: - checkout - - run: - name: Black Formatting - command: | - cd litellm - python -m pip install black - python -m black . - cd .. - - run: - name: Linting Testing - command: | - cd litellm - python -m pip install mypy types-requests types-setuptools types-redis types-PyYAML - if ! python -m mypy . --ignore-missing-imports; then - echo "mypy detected errors" - exit 1 - fi - cd .. - run: name: Check if litellm dir was updated or if pyproject.toml was modified command: | @@ -71,6 +54,23 @@ jobs: paths: - ./venv key: v1-dependencies-{{ checksum ".circleci/requirements.txt" }} + - run: + name: Black Formatting + command: | + cd litellm + python -m pip install black + python -m black . + cd .. + - run: + name: Linting Testing + command: | + cd litellm + python -m pip install mypy types-requests types-setuptools types-redis types-PyYAML + if ! python -m mypy . --ignore-missing-imports; then + echo "mypy detected errors" + exit 1 + fi + cd .. - run: name: Run prisma ./entrypoint.sh command: |