ci-validate-pins.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #
  2. # ci-validate-pins.yml
  3. # Validate that all of the pins files are unchanged by pinsformat.py
  4. #
  5. name: CI - Validate Pins Files
  6. on:
  7. pull_request:
  8. branches:
  9. - bugfix-2.1.x
  10. # Cannot be enabled on 2.1.x until it contains the unit test framework
  11. #- 2.1.x
  12. paths:
  13. - 'Marlin/src/pins/*/**'
  14. push:
  15. branches:
  16. - bugfix-2.1.x
  17. # Cannot be enabled on 2.1.x until it contains the unit test framework
  18. #- 2.1.x
  19. paths:
  20. - 'Marlin/src/pins/*/**'
  21. jobs:
  22. validate_pins_files:
  23. name: Validate Pins Files
  24. if: github.repository == 'MarlinFirmware/Marlin'
  25. runs-on: ubuntu-22.04
  26. steps:
  27. - name: Check out the PR
  28. uses: actions/checkout@v4
  29. - name: Cache pip
  30. uses: actions/cache@v4
  31. with:
  32. path: ~/.cache/pip
  33. key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
  34. restore-keys: |
  35. ${{ runner.os }}-pip-
  36. - name: Select Python 3.9
  37. uses: actions/setup-python@v5
  38. with:
  39. python-version: '3.9'
  40. architecture: 'x64'
  41. - name: Validate all pins files
  42. run: |
  43. make validate-pins -j