Changed np.bool to np.bool_ as those have been depreciated. #148
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: mltype | |
on: | |
pull_request: | |
push: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: [3.8, 3.9, '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 .[dev,mlflow] | |
- name: Lint with flake8 | |
run: | | |
flake8 mltype tests setup.py # see tox.ini for config | |
- name: Check style with black | |
run: | | |
black --check -l 80 mltype tests setup.py | |
- name: Check docstrings with pydocstyle | |
run: | | |
pydocstyle mltype | |
- name: Test with pytest | |
run: | | |
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python pytest --color=yes # see tox.ini for config |