forked from phoenix/litellm-mirror
ci(config.yml): reorder test steps
This commit is contained in:
parent
62b8749fe8
commit
fbd8e8bc77
1 changed files with 17 additions and 19 deletions
|
@ -7,7 +7,23 @@ 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 types-requests types-setuptools types-redis
|
||||||
|
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: |
|
||||||
|
@ -62,24 +78,6 @@ jobs:
|
||||||
chmod +x entrypoint.sh
|
chmod +x entrypoint.sh
|
||||||
./entrypoint.sh
|
./entrypoint.sh
|
||||||
set -e
|
set -e
|
||||||
- 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 types-requests types-setuptools types-redis
|
|
||||||
if ! python -m mypy . --ignore-missing-imports; then
|
|
||||||
echo "mypy detected errors"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
|
|
||||||
# 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