Update the release branch with our changes to the kserve fork #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python package | |
on: | |
push: | |
branches: [ master, release* ] | |
pull_request: | |
branches: [] | |
jobs: | |
flake8-lint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.7", "3.8", "3.9"] | |
name: Lint | |
steps: | |
- name: Check out source repository | |
uses: actions/checkout@v2 | |
- name: Set up Python environment ${{ matrix.python-version }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: flake8 Lint | |
uses: py-actions/flake8@v1 | |
with: | |
max-line-length: "120" | |
exclude: "docs/samples/v1beta1/onnx/assets/*.py,python/kserve/test/test_v1*.py,python/kserve/kserve/__init__.py,python/kserve/test/test_knative*.py,python/kserve/kserve/protocol/grpc/grpc_predict_v2*.py" | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.7, "3.8", "3.9"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
- name: Test with pytest | |
run: | | |
cd python | |
pip install -e ./kserve[test] --config-settings editable_mode=compat | |
pytest --cov=kserve ./kserve | |
pip install -e ./sklearnserver --config-settings editable_mode=compat | |
pytest --cov=sklearnserver ./sklearnserver | |
pip install -e ./xgbserver --config-settings editable_mode=compat | |
pytest --cov=xgbserver ./xgbserver | |
pip install -e ./pmmlserver --config-settings editable_mode=compat | |
pytest --cov=pmmlserver ./pmmlserver | |
pip install -e ./lgbserver --config-settings editable_mode=compat | |
pytest --cov=lgbserver ./lgbserver | |
pip install -e ./paddleserver[test] --config-settings editable_mode=compat | |
pytest --cov=paddleserver ./paddleserver | |
pip install -e ./alibiexplainer --config-settings editable_mode=compat | |
pytest --cov=alibiexplainer ./alibiexplainer |