mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 07:53:26 +00:00
ci: add Python static analysis check via mypy
This commit is contained in:
parent
f47979f087
commit
c5bd2f9dce
20 changed files with 105 additions and 59 deletions
6
.github/workflows/static_checks.yml
vendored
6
.github/workflows/static_checks.yml
vendored
|
@ -27,7 +27,7 @@ jobs:
|
|||
sudo apt-get install -qq dos2unix recode clang-format-13 libxml2-utils python3-pip moreutils
|
||||
sudo update-alternatives --remove-all clang-format || true
|
||||
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-13 100
|
||||
sudo pip3 install black==22.3.0 pygments pytest
|
||||
sudo pip3 install black==22.3.0 pygments pytest==7.1.2 mypy==0.971
|
||||
|
||||
- name: File formatting checks (file_format.sh)
|
||||
run: |
|
||||
|
@ -41,6 +41,10 @@ jobs:
|
|||
run: |
|
||||
bash ./misc/scripts/black_format.sh
|
||||
|
||||
- name: Python scripts static analysis (mypy_check.sh)
|
||||
run: |
|
||||
bash ./misc/scripts/mypy_check.sh
|
||||
|
||||
- name: Python builders checks via pytest (pytest_builders.sh)
|
||||
run: |
|
||||
bash ./misc/scripts/pytest_builders.sh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue