formatting.yml 646 B

12345678910111213141516171819202122232425262728293031323334353637
  1. name: Formatting
  2. on:
  3. push:
  4. branches:
  5. - 'master'
  6. - 'staging**'
  7. pull_request:
  8. branches:
  9. '**'
  10. concurrency:
  11. group: ${{ github.workflow }}-${{ github.ref }}
  12. cancel-in-progress: true
  13. jobs:
  14. # formatting and basic install on cpu-only machine
  15. formatting:
  16. runs-on: ubuntu-20.04
  17. steps:
  18. - uses: actions/checkout@v2
  19. - name: environment
  20. run: |
  21. which python
  22. python --version
  23. - name: Install deepspeed
  24. run: |
  25. pip install .[dev,autotuning]
  26. ds_report
  27. - name: Formatting checks
  28. run: |
  29. pre-commit run --all-files