aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/pylint.yml
blob: c8696749f3424c0dacf1ffa975386a5c87a6e3f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: pylint

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  pylint:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - 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 $?