Skip to content

add litellm-stack deploy (#1202) #1555

add litellm-stack deploy (#1202)

add litellm-stack deploy (#1202) #1555

Workflow file for this run

name: Python
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build_and_test_python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
# 以下步骤将在 3kctl 目录下执行
- name: Change to 3kctl directory
run: cd 3kctl
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
working-directory: 3kctl
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
working-directory: 3kctl
- name: Test with pytest
run: |
pip install pytest
pytest
working-directory: 3kctl
- name: Test with coverage
run: |
pip install pytest-cov
pytest --cov=./ --cov-report=xml
working-directory: 3kctl
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./3kctl/coverage.xml