linting.yml 561 B

123456789101112131415161718192021222324
  1. name: Linting
  2. on: [push, pull_request]
  3. jobs:
  4. lint:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: actions/checkout@v2
  8. - name: Setup Python
  9. uses: actions/setup-python@v2
  10. with:
  11. python-version: 3.9
  12. - name: Install dependencies
  13. run: |
  14. python -m pip install --upgrade pip
  15. pip install -r requirements-first.txt
  16. pip install -r requirements-dev.txt
  17. - name: isort
  18. run: isort --recursive --diff .
  19. - name: Black
  20. run: black --check .