aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/pylint.yml
blob: c6939b50f3e4c0f2b5c4aa3510fb3943a685baf6 (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
27
28
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 $?