From aa714b802255667b655f00b6e6dd5d9bcf5c065d Mon Sep 17 00:00:00 2001 From: Leonard Sheng Sheng Lee Date: Mon, 25 Oct 2021 14:10:58 +0200 Subject: [PATCH] fix: pylint --- .github/workflows/pylint.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 73ea43a..0b88fe7 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -1,23 +1,23 @@ name: Pylint -on: [push] +# yamllint disable-line rule:truthy +on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.9 - uses: actions/setup-python@v2 - with: - python-version: 3.9 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pylint - pip install -r requirements.txt - - name: Analysing the code with pylint - run: | - pylint $(git ls-files '*.py') + - uses: actions/checkout@v2 + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: 3.9 + - name: Setup Pylint + run: | + python -m pip install --upgrade pip + pip install pylint + pip install -r requirements.txt + - name: Run Pylint + run: | + pylint $(git ls-files '*.py')