Skip to content

Commit

Permalink
Merge pull request #49 from bhayden53/master
Browse files Browse the repository at this point in the history
github actions for code style and lint checks
  • Loading branch information
bhayden53 authored Feb 23, 2021
2 parents de5c6ac + 04add0d commit 27db787
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: code checks

on: [push, pull_request]

jobs:
bandit:
name: run bandit
runs-on: ubuntu-18.04

steps:
- name: set up python 3.6.10
uses: actions/setup-python@v2
with:
python-version: 3.6.10

- name: install dependencies
run: pip install bandit

- name: checkout code
uses: actions/checkout@v2

- name: run bandit security checks
run: bandit -ll -r calcloud

black:
name: run black
runs-on: ubuntu-18.04

steps:
- name: set up python 3.6.10
uses: actions/setup-python@v2
with:
python-version: 3.6.10

- name: install dependencies
run: pip install black

- name: checkout code
uses: actions/checkout@v2

- name: run black style checks
run: black --check calcloud lambda

flake8:
name: run flake8
runs-on: ubuntu-18.04

steps:
- name: set up python 3.6.10
uses: actions/setup-python@v2
with:
python-version: 3.6.10

- name: install dependencies
run: pip install flake8

- name: checkout code
uses: actions/checkout@v2

- name: run flake8 python lint checks
run: flake8 --count --max-line-length=120 --exclude docs

0 comments on commit 27db787

Please sign in to comment.