forked from phoenix/litellm-mirror
ci(config.yml): reset config.yml
This commit is contained in:
parent
592241b4eb
commit
861efda54d
1 changed files with 19 additions and 17 deletions
|
@ -7,6 +7,16 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
|
||||||
|
- run:
|
||||||
|
name: Check if litellm dir was updated or if pyproject.toml was modified
|
||||||
|
command: |
|
||||||
|
if [ -n "$(git diff --name-only $CIRCLE_SHA1^..$CIRCLE_SHA1 | grep -E 'pyproject\.toml|litellm/')" ]; then
|
||||||
|
echo "litellm updated"
|
||||||
|
else
|
||||||
|
echo "No changes to litellm or pyproject.toml. Skipping tests."
|
||||||
|
circleci step halt
|
||||||
|
fi
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- v1-dependencies-{{ checksum ".circleci/requirements.txt" }}
|
- v1-dependencies-{{ checksum ".circleci/requirements.txt" }}
|
||||||
|
@ -45,6 +55,13 @@ jobs:
|
||||||
paths:
|
paths:
|
||||||
- ./venv
|
- ./venv
|
||||||
key: v1-dependencies-{{ checksum ".circleci/requirements.txt" }}
|
key: v1-dependencies-{{ checksum ".circleci/requirements.txt" }}
|
||||||
|
- run:
|
||||||
|
name: Run prisma ./entrypoint.sh
|
||||||
|
command: |
|
||||||
|
set +e
|
||||||
|
chmod +x entrypoint.sh
|
||||||
|
./entrypoint.sh
|
||||||
|
set -e
|
||||||
- run:
|
- run:
|
||||||
name: Black Formatting
|
name: Black Formatting
|
||||||
command: |
|
command: |
|
||||||
|
@ -56,28 +73,13 @@ jobs:
|
||||||
name: Linting Testing
|
name: Linting Testing
|
||||||
command: |
|
command: |
|
||||||
cd litellm
|
cd litellm
|
||||||
python -m pip install mypy types-requests types-setuptools types-redis types-PyYAML
|
python -m pip install types-requests types-setuptools types-redis types-PyYAML
|
||||||
if ! python -m mypy . --ignore-missing-imports; then
|
if ! python -m mypy . --ignore-missing-imports; then
|
||||||
echo "mypy detected errors"
|
echo "mypy detected errors"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
cd ..
|
cd ..
|
||||||
- run:
|
|
||||||
name: Check if litellm dir was updated or if pyproject.toml was modified
|
|
||||||
command: |
|
|
||||||
if [ -n "$(git diff --name-only $CIRCLE_SHA1^..$CIRCLE_SHA1 | grep -E 'pyproject\.toml|litellm/')" ]; then
|
|
||||||
echo "litellm updated"
|
|
||||||
else
|
|
||||||
echo "No changes to litellm or pyproject.toml. Skipping tests."
|
|
||||||
circleci step halt
|
|
||||||
fi
|
|
||||||
- run:
|
|
||||||
name: Run prisma ./entrypoint.sh
|
|
||||||
command: |
|
|
||||||
set +e
|
|
||||||
chmod +x entrypoint.sh
|
|
||||||
./entrypoint.sh
|
|
||||||
set -e
|
|
||||||
|
|
||||||
# Run pytest and generate JUnit XML report
|
# Run pytest and generate JUnit XML report
|
||||||
- run:
|
- run:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue