From b42dfcfcffcd32900cb3c1be4e2e40ae1647d38c Mon Sep 17 00:00:00 2001 From: Darren Eberly Date: Thu, 11 Aug 2022 01:52:35 -0400 Subject: [PATCH] Add linting actions job --- .github/workflows/lint.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..27e805a --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,38 @@ +name: Lint + +on: + push: + branches: [development] + pull_request: + branches: [development] + workflow_dispatch: + +jobs: + + build: + name: Lint + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@master + - name: Set up Python 3.x + uses: actions/setup-python@v4 + with: + python-version: '3.x' + architecture: 'x64' + - name: dependencies + run: | + python -m pip install -U pip wheel setuptools + - name: wheel + run: | + python -m pip install -e .[tests] + - name: flake8 + run: | + flake8 pytiled_parser + - name: mypy + run: | + mypy pytiled_parser + - name: black + run: | + black pytiled_parser --check + \ No newline at end of file