formatting.yml 714 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: Formatting
  2. on:
  3. pull_request:
  4. branches:
  5. '**'
  6. merge_group:
  7. branches: [ master ]
  8. schedule:
  9. - cron: "0 0 * * *"
  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@v3
  19. - name: environment
  20. run: |
  21. which python
  22. python --version
  23. - name: Install deepspeed
  24. run: |
  25. pip install .[dev,autotuning,triton]
  26. ds_report
  27. - name: Formatting checks
  28. run: |
  29. pip show pre-commit clang-format
  30. pre-commit run --all-files