yapf.yml 743 B

123456789101112131415161718192021222324252627282930313233
  1. name: yapf
  2. on:
  3. # Trigger the workflow on push or pull request,
  4. # but only for the main branch
  5. push:
  6. branches:
  7. - main
  8. - dev
  9. pull_request:
  10. branches:
  11. - main
  12. - dev
  13. jobs:
  14. yapf:
  15. runs-on: ubuntu-latest
  16. strategy:
  17. matrix:
  18. python-version: ["3.10"]
  19. steps:
  20. - uses: actions/checkout@v2
  21. - name: Set up Python ${{ matrix.python-version }}
  22. uses: actions/setup-python@v2
  23. with:
  24. python-version: ${{ matrix.python-version }}
  25. - name: Install dependencies
  26. run: |
  27. python -m pip install --upgrade pip
  28. pip install yapf==0.32.0
  29. pip install toml==0.10.2
  30. - name: Running yapf
  31. run: |
  32. yapf --diff --recursive aphrodite tests