From 6dff53aa4189d8c7bc05ab0f25b11f16c2b4878b Mon Sep 17 00:00:00 2001 From: Ranjan Shrestha Date: Thu, 4 Jan 2024 10:30:56 +0545 Subject: [PATCH] flake8 checker added in workflow; --- .github/workflows/flake8.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..b5951fc --- /dev/null +++ b/.github/workflows/flake8.yml @@ -0,0 +1,25 @@ +name: Flake8 check. + +on: + pull_request: + push: + branches: + - main + +jobs: + check: + name: Flake8 check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + # Flake8 check + - name: Install flake8 + run: pip install flake8 + - name: Run flake8 + uses: suo/flake8-github-action@releases/v1 + with: + # NOTE: this needs to be the same as the job name + checkName: 'Flake8 check' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}