adjust to Milvus Lite #16
Workflow file for this run
This file contains hidden or 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: all | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ['3.10'] | |
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 Python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e .[dev] | |
- name: Lint with flake8 | |
run: | | |
flake8 src tests examples | |
- name: Check style with black | |
run: | | |
black src tests examples | |
- name: Run security check | |
run: | | |
bandit -qr -c pyproject.toml src examples | |
- name: Run import check | |
run: | | |
isort --check src tests examples | |
- name: Run mypy | |
run: | | |
mypy src | |
- name: Test with pytest | |
run: | | |
pytest --color=yes |