forked from phoenix/litellm-mirror
ci(config.yml): reorder steps - install deps first
This commit is contained in:
parent
ae96c2cfbd
commit
44a344e125
1 changed files with 17 additions and 17 deletions
|
@ -7,23 +7,6 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- 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:
|
- run:
|
||||||
name: Check if litellm dir was updated or if pyproject.toml was modified
|
name: Check if litellm dir was updated or if pyproject.toml was modified
|
||||||
command: |
|
command: |
|
||||||
|
@ -71,6 +54,23 @@ jobs:
|
||||||
paths:
|
paths:
|
||||||
- ./venv
|
- ./venv
|
||||||
key: v1-dependencies-{{ checksum ".circleci/requirements.txt" }}
|
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:
|
- run:
|
||||||
name: Run prisma ./entrypoint.sh
|
name: Run prisma ./entrypoint.sh
|
||||||
command: |
|
command: |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue