yapf.yml 719 B

12345678910111213141516171819202122232425262728293031
  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. pull_request:
  9. branches:
  10. - main
  11. jobs:
  12. yapf:
  13. runs-on: ubuntu-latest
  14. strategy:
  15. matrix:
  16. python-version: ["3.10"]
  17. steps:
  18. - uses: actions/checkout@v2
  19. - name: Set up Python ${{ matrix.python-version }}
  20. uses: actions/setup-python@v2
  21. with:
  22. python-version: ${{ matrix.python-version }}
  23. - name: Install dependencies
  24. run: |
  25. python -m pip install --upgrade pip
  26. pip install yapf==0.32.0
  27. pip install toml==0.10.2
  28. - name: Running yapf
  29. run: |
  30. yapf --diff --recursive aphrodite tests