Skip to content

Commit

Permalink
Merge pull request #7 from awslabs/workflows
Browse files Browse the repository at this point in the history
Adding Bandit & Static Checking workflows
  • Loading branch information
malachi-constant committed Feb 17, 2022
2 parents 66af9e8 + 2b7f6b9 commit 221fd63
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/bandit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Bandit

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: |
python -m pip install --upgrade pip
python -m pip install bandit
- name: Bandit
run: bandit -r -lll -ii .
42 changes: 42 additions & 0 deletions .github/workflows/static-checking.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Static Checking

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
Check:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install Requirements
run: |
python -m pip install --upgrade pip
python -m pip install poetry
poetry config virtualenvs.create false --local
poetry install -vvv
- name: mypy check
run: |
mypy --install-types --non-interactive core
mypy --install-types --non-interactive cli
- name: Flake8 Lint
run: flake8 .
- name: Black style
run: black --check .
- name: Imports order check (isort)
run: isort --check .
- name: Documentation check
run: doc8 --ignore D005,D002 --max-line-length 120 docs/source

0 comments on commit 221fd63

Please sign in to comment.