pre-commit.yml 698 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: pre-commit
  2. on:
  3. pull_request:
  4. push:
  5. concurrency:
  6. group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
  7. cancel-in-progress: true
  8. jobs:
  9. pre-commit:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - name: Setup Python
  13. uses: actions/setup-python@v4
  14. with:
  15. python-version: '3.x'
  16. - name: Setup Ruby
  17. uses: ruby/setup-ruby@v1
  18. with:
  19. ruby-version: '2.7'
  20. - name: Checkout TinyUSB
  21. uses: actions/checkout@v3
  22. - name: Run codespell
  23. uses: codespell-project/actions-codespell@master
  24. - name: Run Unit Tests
  25. run: |
  26. # Install Ceedling
  27. gem install ceedling
  28. cd test
  29. ceedling test:all