lint.yaml 853 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: lint
  2. # Run this workflow every time a new commit pushed to your repository
  3. on:
  4. push:
  5. branches:
  6. - master
  7. pull_request:
  8. branches:
  9. - master
  10. jobs:
  11. # Set the job key. The key is displayed as the job name
  12. # when a job name is not provided
  13. lint:
  14. runs-on: ubuntu-latest
  15. strategy:
  16. matrix:
  17. python-version: [ '3.8' ]
  18. steps:
  19. - name: Checkout code
  20. uses: actions/checkout@v2
  21. - name: Setup Python
  22. uses: actions/setup-python@v2
  23. with:
  24. python-version: ${{ matrix.python-version }}
  25. - name: Cache pip dir
  26. uses: actions/cache@v2
  27. with:
  28. path: ~/.cache/pip
  29. key: pip-cache-${{ matrix.python-version }}-lint
  30. - name: Install required packages
  31. run: pip install tox
  32. - name: Run tox
  33. run: tox -e lint