Implementing warnings system and pygame.debug #3017
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: cppcheck Static Analysis | |
# Run cppcheck on src_c changes to main branch, or any PR to main. | |
on: | |
push: | |
branches: main | |
paths: | |
- 'src_c/**' | |
pull_request: | |
branches: main | |
paths: | |
- 'src_c/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-cppcheck | |
cancel-in-progress: true | |
# TODO: Any more static checkers can be added here | |
jobs: | |
run-cppcheck: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4.1.7 | |
- name: Install deps | |
# https://github.com/actions/runner-images/issues/7192 | |
# https://github.com/orgs/community/discussions/47863 | |
run: | | |
sudo apt-get update --fix-missing | |
sudo apt install cppcheck | |
- name: Run Static Checker | |
# skip cppcheck on SDL_gfx and scrap for now | |
run: cppcheck src_c --force --enable=performance,portability,warning \ | |
--suppress=*:src_c/SDL_gfx/* --suppress=*:src_c/scrap* |