format-backend.yaml 706 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: Python CI
  2. on:
  3. push:
  4. branches:
  5. - main
  6. - dev
  7. pull_request:
  8. branches:
  9. - main
  10. - dev
  11. jobs:
  12. build:
  13. name: 'Format Backend'
  14. runs-on: ubuntu-latest
  15. strategy:
  16. matrix:
  17. python-version: [3.11]
  18. steps:
  19. - uses: actions/checkout@v4
  20. - name: Set up Python
  21. uses: actions/setup-python@v5
  22. with:
  23. python-version: ${{ matrix.python-version }}
  24. - name: Install dependencies
  25. run: |
  26. python -m pip install --upgrade pip
  27. pip install black
  28. - name: Format backend
  29. run: npm run format:backend
  30. - name: Check for changes after format
  31. run: git diff --exit-code