1
0

python-lint.yml 756 B

123456789101112131415161718192021222324252627282930
  1. name: flake8 Lint
  2. on:
  3. push:
  4. branches:
  5. - master
  6. paths: ['.github/workflows/python-lint.yml', '**/*.py']
  7. pull_request:
  8. types: [opened, synchronize, reopened]
  9. paths: ['.github/workflows/python-lint.yml', '**/*.py']
  10. concurrency:
  11. group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
  12. cancel-in-progress: true
  13. jobs:
  14. flake8-lint:
  15. runs-on: ubuntu-latest
  16. name: Lint
  17. steps:
  18. - name: Check out source repository
  19. uses: actions/checkout@v4
  20. - name: Set up Python environment
  21. uses: actions/setup-python@v5
  22. with:
  23. python-version: "3.11"
  24. - name: flake8 Lint
  25. uses: py-actions/flake8@v2
  26. with:
  27. plugins: "flake8-no-print"