|
|
- name: pylint
-
- on:
- push:
- branches: [ main ]
- pull_request:
- branches: [ main ]
-
- jobs:
- pylint:
-
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/checkout@v3
- - name: Set up Python 3.8
- uses: actions/setup-python@v1
- with:
- python-version: 3.8
-
- - name: Install dependencies
- run: |
- python -m pip install --upgrade pip
- pip install pylint pylint-exit conan
-
- - name: Run pylint
- run: |
- pylint `find . -name '*.py'|xargs` || pylint-exit $?
|