Merge pull request #126 from sheeeng/fix/pylint

fix: pylint
This commit is contained in:
Logykk 2021-10-26 08:09:31 +13:00 committed by GitHub
commit 27c4ea580b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 15 deletions

View File

@ -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')