static analysis #608
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
# This workflow runs static analysis checks on pull requests. | |
name: static analysis | |
on: | |
pull_request: | |
push: | |
# Run once a day | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
analysis: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
category: | |
- mypy-py2 | |
- mypy-py3 | |
- bandit | |
- doc8 | |
- readme | |
- docs | |
- flake8 | |
- pylint | |
- flake8-tests | |
- pylint-tests | |
- black-check | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- run: | | |
python -m pip install --upgrade pip | |
pip install --upgrade -r ci-requirements.txt | |
- name: check | |
env: | |
TOXENV: ${{ matrix.category }} | |
run: tox -- -vv |