build(deps-dev): update mypy requirement from <1.0,>=0.910 to >=0.910,<2.0 #1
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
# vim: et | |
on: | |
pull_request: | |
jobs: | |
tests: | |
name: Run PyTest and Bandit | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.9] | |
steps: | |
- uses: actions/checkout@master | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Prepare pip | |
run: | | |
python -m pip install --upgrade pip | |
- name: Install prerequistes for testing | |
run: | | |
python -m pip install .[test] | |
- name: Run tests | |
run: | | |
pytest | |
- name: Run Bandit | |
run: | | |
bandit -r src | |
linting: | |
name: Run MyPy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Prepare pip | |
run: | | |
python -m pip install --upgrade pip | |
- name: Install prerequistes for testing | |
run: | | |
python -m pip install .[test] | |
- name: Run MyPy | |
run: | | |
mypy --package stanford.mais |