Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Black

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
formatting:
name: Black Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup black environment
run: conda create --quiet --name black black

- name: Check formatting
run: |
export PATH="/usr/share/miniconda/bin:$PATH"
source activate black
black --check .
20 changes: 20 additions & 0 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Flake8

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
gitHubActionForFlake8:
name: Flake8 Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: GitHub Action for Flake8
uses: cclauss/GitHub-Action-for-Flake8@master
with:
args: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics