python_lint.yml 644 B

123456789101112131415161718192021222324252627
  1. name: Python CI
  2. # This workflow will be triggered when a PR modifies some python relevant files
  3. on:
  4. pull_request:
  5. paths:
  6. - "**.py"
  7. jobs:
  8. python_lint:
  9. name: python lint
  10. runs-on: ubuntu-latest
  11. strategy:
  12. matrix:
  13. python-version: ["3.7", "3.8", "3.9", "3.10"]
  14. steps:
  15. - name: Checkout
  16. uses: actions/checkout@master
  17. - name: Set up Python environment
  18. uses: actions/setup-python@master
  19. with:
  20. python-version: ${{ matrix.python-version }}
  21. - name: Lint with flake8
  22. run: |
  23. pip install flake8
  24. flake8 . --config=.flake8 --benchmark