mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 18:24:20 +00:00
with failing linting
This commit is contained in:
parent
1bb2aefea1
commit
1310e3b32f
2 changed files with 16 additions and 6 deletions
|
@ -25,8 +25,19 @@ jobs:
|
|||
python -m pip install -r .circleci/requirements.txt
|
||||
pip install infisical
|
||||
pip install pytest
|
||||
pip install mypy
|
||||
pip install openai[datalib]
|
||||
pip install -Uq chromadb==0.3.29
|
||||
|
||||
- run:
|
||||
name: Linting Testing
|
||||
command: |
|
||||
cd litellm
|
||||
if ! python -m mypy . --ignore-missing-imports; then
|
||||
echo "mypy detected errors"
|
||||
exit 1
|
||||
fi
|
||||
cd ..
|
||||
|
||||
|
||||
# Run pytest and generate JUnit XML report
|
||||
|
@ -83,11 +94,10 @@ workflows:
|
|||
version: 2
|
||||
build_and_test:
|
||||
jobs:
|
||||
- local_testing
|
||||
- linting
|
||||
- local_testing:
|
||||
requires:
|
||||
- linting
|
||||
- publish_to_pypi:
|
||||
requires:
|
||||
- local_testing
|
||||
filters:
|
||||
branches:
|
||||
only:
|
||||
- main
|
||||
|
|
|
@ -50,4 +50,4 @@ try:
|
|||
except:
|
||||
print(f"error occurred: {traceback.format_exc()}")
|
||||
pass
|
||||
os.environ["OPENAI_API_KEY"] = str(temp_key)
|
||||
os.environ["OPENAI_API_KEY"] = temp_key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue