From fd3f9dba8f5e2b2c8047fcf420332095d78a36e1 Mon Sep 17 00:00:00 2001 From: tek Date: Wed, 25 May 2022 14:38:51 +0200 Subject: [PATCH] Adds automated flake8 check in github workflow --- .github/workflows/flake8.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/flake8.yml diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml new file mode 100644 index 0000000..9f60283 --- /dev/null +++ b/.github/workflows/flake8.yml @@ -0,0 +1,26 @@ +name: Flake8 + +on: + push: + paths: + - '*.py' + +jobs: + flake8_py3: + runs-on: ubuntu-latest + steps: + - name: Setup Python + uses: actions/setup-python@v1 + with: + python-version: 3.9 + architecture: x64 + - name: Checkout + uses: actions/checkout@master + - name: Install flake8 + run: pip install flake8 + - name: Run flake8 + uses: suo/flake8-github-action@releases/v1 + with: + checkName: 'flake8_py3' # NOTE: this needs to be the same as the job name + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}