forked from phoenix/litellm-mirror
with failing linting
This commit is contained in:
parent
1bb2aefea1
commit
1310e3b32f
2 changed files with 16 additions and 6 deletions
|
@ -25,9 +25,20 @@ jobs:
|
||||||
python -m pip install -r .circleci/requirements.txt
|
python -m pip install -r .circleci/requirements.txt
|
||||||
pip install infisical
|
pip install infisical
|
||||||
pip install pytest
|
pip install pytest
|
||||||
|
pip install mypy
|
||||||
pip install openai[datalib]
|
pip install openai[datalib]
|
||||||
pip install -Uq chromadb==0.3.29
|
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
|
# Run pytest and generate JUnit XML report
|
||||||
- run:
|
- run:
|
||||||
|
@ -83,11 +94,10 @@ workflows:
|
||||||
version: 2
|
version: 2
|
||||||
build_and_test:
|
build_and_test:
|
||||||
jobs:
|
jobs:
|
||||||
- local_testing
|
- linting
|
||||||
|
- local_testing:
|
||||||
|
requires:
|
||||||
|
- linting
|
||||||
- publish_to_pypi:
|
- publish_to_pypi:
|
||||||
requires:
|
requires:
|
||||||
- local_testing
|
- local_testing
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
only:
|
|
||||||
- main
|
|
||||||
|
|
|
@ -50,4 +50,4 @@ try:
|
||||||
except:
|
except:
|
||||||
print(f"error occurred: {traceback.format_exc()}")
|
print(f"error occurred: {traceback.format_exc()}")
|
||||||
pass
|
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