Skip to content

static analysis

static analysis #2282

# 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-py3
- bandit
- doc8
- readme
- docs
- flake8
- pylint
- flake8-tests
- flake8-examples
- pylint-tests
- pylint-examples
- black-check
- isort-check
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.8
- run: |
python -m pip install --upgrade pip
pip install --upgrade -r dev_requirements/ci-requirements.txt
- name: check
env:
TOXENV: ${{ matrix.category }}
run: tox -- -vv