logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

lint.yml (1287B)


  1. # SPDX-FileCopyrightText: 2023 fosslinux <fosslinux@aussies.space>
  2. #
  3. # SPDX-License-Identifier: GPL-3.0-or-later
  4. name: Linters
  5. on:
  6. workflow_dispatch:
  7. pull_request:
  8. push:
  9. branches:
  10. - master
  11. jobs:
  12. pylint:
  13. name: Lint Python files
  14. runs-on: ubuntu-latest
  15. steps:
  16. - name: Checkout repo
  17. uses: actions/checkout@v3
  18. - name: Install pylint
  19. run: sudo pip3 install pylint
  20. - name: pylint
  21. run: pylint rootfs.py lib/utils.py lib/generator.py lib/target.py check_substitutes.py --disable=duplicate-code
  22. shellcheck:
  23. name: Lint shell files
  24. runs-on: ubuntu-latest
  25. steps:
  26. - name: Checkout repo
  27. uses: actions/checkout@v3
  28. - name: shellcheck
  29. run: shellcheck steps/helpers.sh download-distfiles.sh
  30. reuse:
  31. name: Lint reuse information
  32. runs-on: ubuntu-latest
  33. steps:
  34. - name: Checkout repo
  35. uses: actions/checkout@v3
  36. - name: Install reuse
  37. run: sudo pip3 install reuse
  38. - name: reuse
  39. run: reuse lint
  40. substitutes:
  41. name: Check validity of substituted tarballs
  42. runs-on: ubuntu-latest
  43. steps:
  44. - name: Checkout repo
  45. uses: actions/checkout@v3
  46. - name: Check validity of substitutes
  47. run: ./check_substitutes.py