Advertisement
Guest User

Untitled

a guest
Dec 14th, 2023
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. name: "backend"
  2. on:
  3. pull_request:
  4. push:
  5. branches:
  6. - dev
  7. - prod
  8.  
  9. defaults:
  10. run:
  11. working-directory: ./backend/django
  12.  
  13. jobs:
  14. lint:
  15. name: lint
  16. runs-on: ubuntu-latest
  17. steps:
  18. - uses: actions/checkout@v4
  19. - name: Set up Python
  20. uses: actions/setup-python@v4
  21. with:
  22. python-version: "3.12"
  23. - name: Install all required pip modules
  24. run: pip install -r ./linter-requirements.txt && pip install -r ./build-requirements.txt
  25. - name: Run pylint
  26. run: pylint seatstock
  27.  
  28. format:
  29. name: check-format
  30. runs-on: ubuntu-latest
  31. steps:
  32. - uses: actions/checkout@v4
  33. - name: Set up Python
  34. uses: actions/setup-python@v4
  35. with:
  36. python-version: "3.12"
  37. - name: Install linter_requirements.txt modules
  38. run: pip install -r ./linter-requirements.txt
  39. - name: Run black
  40. run: black --check seatstock
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement