1name: pylint 2 3on: 4 push: 5 branches: [ main ] 6 pull_request: 7 branches: [ main ] 8 9jobs: 10 pylint: 11 12 runs-on: ubuntu-latest 13 14 steps: 15 - uses: actions/checkout@v3 16 - name: Set up Python 3.8 17 uses: actions/setup-python@v1 18 with: 19 python-version: 3.8 20 21 - name: Install dependencies 22 run: | 23 python -m pip install --upgrade pip 24 pip install pylint pylint-exit conan 25 26 - name: Run pylint 27 run: | 28 pylint `find . -name '*.py'|xargs` || pylint-exit $? 29