-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Joseph Hamman
committed
Aug 4, 2020
1 parent
2b59211
commit 10431ef
Showing
1 changed file
with
4 additions
and
46 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,54 +7,12 @@ on: | |
branches: master | ||
|
||
jobs: | ||
lint-black: | ||
name: black-formatter | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Set up Python 3.8 | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.8 | ||
- name: Install Black | ||
run: | | ||
python -m pip install black | ||
- name: Black Code Formatter | ||
run: | | ||
black --check --line-length 100 --skip-string-normalization . | ||
lint-flake8: | ||
name: flake8 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Set up Python 3.8 | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.8 | ||
- name: Install Flake8 | ||
run: | | ||
python -m pip install flake8 | ||
- name: Flake8 check | ||
run: | | ||
flake8 . | ||
lint-isort: | ||
name: isort | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Set up Python 3.8 | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.8 | ||
- name: Install isort | ||
run: | | ||
python -m pip install isort | ||
- name: isort check | ||
run: | | ||
isort --check-only . | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
- uses: pre-commit/[email protected] | ||
test: | ||
name: ${{ matrix.python-version }}-build | ||
runs-on: ubuntu-latest | ||
|