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@v2 16 - name: Set up Python 3.8 17 uses: actions/setup-python@v1 18 with: 19 python-version: 3.8 20 - name: Install dependencies 21 run: | 22 python -m pip install --upgrade pip 23 pip install pylint pylint-exit conan 24 - name: Run pylint 25 run: | 26 pylint `find . -name '*.py'|xargs` || pylint-exit $? 27