From 2996be3dfa46e51d9e794323ef87251af0c71f2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=AFo=D0=BD=D0=B8=D0=B8=CE=B3=20=C4=AFo=D0=BD=D0=B8?= =?UTF-8?q?=D0=B8=CE=B3?= Date: Sun, 15 Mar 2020 20:26:15 -0700 Subject: [PATCH] Added format check gh action workflow (#90) --- .github/workflows/format-check.yml | 27 +++++++++++++++++++++++++++ gilt/shell.py | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/format-check.yml diff --git a/.github/workflows/format-check.yml b/.github/workflows/format-check.yml new file mode 100644 index 0000000..91a80a0 --- /dev/null +++ b/.github/workflows/format-check.yml @@ -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 diff --git a/gilt/shell.py b/gilt/shell.py index 77d2317..8e532b5 100644 --- a/gilt/shell.py +++ b/gilt/shell.py @@ -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",