static_code_analysis.yml 649 B

123456789101112131415161718192021222324252627282930
  1. name: Static code analysis
  2. on:
  3. pull_request:
  4. branches:
  5. - master
  6. jobs:
  7. scancode_job:
  8. runs-on: ubuntu-latest
  9. name: Static code analysis
  10. steps:
  11. - uses: actions/checkout@v3
  12. - name: Set up Python
  13. uses: actions/setup-python@v3
  14. with:
  15. python-version: 3.8
  16. - name: cppcheck
  17. shell: bash
  18. run: |
  19. sudo apt-get update
  20. sudo apt-get -qq install cppcheck
  21. pip install click PyYaml
  22. git remote -v
  23. git fetch origin
  24. cppcheck --version
  25. ls
  26. git branch -a
  27. python tools/ci/cpp_check.py check