You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
517 B

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