work.yml 617 B

123456789101112131415161718192021222324
  1. name: Yaml Check
  2. on:
  3. schedule:
  4. # Runs at 00:00 UTC on the 1, 6, 11, 16, 21, 26 and 31th of every month
  5. - cron: '0 0 */5 * *'
  6. push:
  7. branches: [ main ]
  8. pull_request:
  9. branches: [ main ]
  10. jobs:
  11. build:
  12. runs-on: ubuntu-latest
  13. steps:
  14. - uses: actions/checkout@v2
  15. - name: Set up Python
  16. uses: actions/setup-python@master
  17. with:
  18. python-version: 3.8
  19. - name: Check Package Yaml
  20. run: |
  21. pip install rt-thread-studio
  22. python -c "from rt_thread_studio import bsp_checker;bsp_path = '.';checker = bsp_checker.BspChecker(bsp_path);checker.check();"