Skip to content

Commit

Permalink
Added format check gh action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
retr0h committed Mar 16, 2020
1 parent e40ed24 commit 592b24a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/format-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Format Check
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
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 dependencies
run: |
pip install tox
- name: Execute Format Check
run: |
tox -e format-check
2 changes: 1 addition & 1 deletion gilt/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class NotFoundError(Exception):
"--config",
default="gilt.yml",
help="Path to config file. Default gilt.yml",
type=click.File('r'),
type=click.File("r"),
)
@click.option(
"--debug/--no-debug",
Expand Down

0 comments on commit 592b24a

Please sign in to comment.