|
@@ -13,15 +13,10 @@ jobs:
|
|
with:
|
|
with:
|
|
fetch-depth: 2
|
|
fetch-depth: 2
|
|
|
|
|
|
- - name: Install APT dependencies
|
|
|
|
- run: |
|
|
|
|
- sudo apt update
|
|
|
|
- sudo apt install -y libxml2-utils
|
|
|
|
-
|
|
|
|
- - name: Install Python dependencies and general setup
|
|
|
|
|
|
+ # This needs to happen before Python and npm execution; it must happen before any extra files are written.
|
|
|
|
+ - name: .gitignore checks (gitignore_check.sh)
|
|
run: |
|
|
run: |
|
|
- pip3 install pytest==7.1.2
|
|
|
|
- git config diff.wsErrorHighlight all
|
|
|
|
|
|
+ bash ./misc/scripts/gitignore_check.sh
|
|
|
|
|
|
- name: Get changed files
|
|
- name: Get changed files
|
|
env:
|
|
env:
|
|
@@ -32,27 +27,17 @@ jobs:
|
|
elif [ "${{ github.event_name }}" == "push" -a "${{ github.event.forced }}" == "false" -a "${{ github.event.created }}" == "false" ]; then
|
|
elif [ "${{ github.event_name }}" == "push" -a "${{ github.event.forced }}" == "false" -a "${{ github.event.created }}" == "false" ]; then
|
|
files=$(git diff-tree --no-commit-id --name-only -r ${{ github.event.before }}..${{ github.event.after }} 2> /dev/null || true)
|
|
files=$(git diff-tree --no-commit-id --name-only -r ${{ github.event.before }}..${{ github.event.after }} 2> /dev/null || true)
|
|
fi
|
|
fi
|
|
- echo "$files" >> changed.txt
|
|
|
|
- cat changed.txt
|
|
|
|
- files=$(echo "$files" | grep -v 'thirdparty' | xargs -I {} sh -c 'echo "\"./{}\""' | tr '\n' ' ')
|
|
|
|
|
|
+ files=$(echo "$files" | xargs -I {} sh -c 'echo "\"./{}\""' | tr '\n' ' ')
|
|
echo "CHANGED_FILES=$files" >> $GITHUB_ENV
|
|
echo "CHANGED_FILES=$files" >> $GITHUB_ENV
|
|
|
|
|
|
- # This needs to happen before Python and npm execution; it must happen before any extra files are written.
|
|
|
|
- - name: .gitignore checks (gitignore_check.sh)
|
|
|
|
- run: |
|
|
|
|
- bash ./misc/scripts/gitignore_check.sh
|
|
|
|
-
|
|
|
|
- name: Style checks via pre-commit
|
|
- name: Style checks via pre-commit
|
|
uses: pre-commit/[email protected]
|
|
uses: pre-commit/[email protected]
|
|
with:
|
|
with:
|
|
extra_args: --files ${{ env.CHANGED_FILES }}
|
|
extra_args: --files ${{ env.CHANGED_FILES }}
|
|
|
|
|
|
- - name: Python builders checks via pytest
|
|
|
|
- run: |
|
|
|
|
- pytest ./tests/python_build
|
|
|
|
-
|
|
|
|
- name: Class reference schema checks
|
|
- name: Class reference schema checks
|
|
run: |
|
|
run: |
|
|
|
|
+ sudo apt install -y libxml2-utils
|
|
xmllint --quiet --noout --schema doc/class.xsd doc/classes/*.xml modules/*/doc_classes/*.xml platform/*/doc_classes/*.xml
|
|
xmllint --quiet --noout --schema doc/class.xsd doc/classes/*.xml modules/*/doc_classes/*.xml platform/*/doc_classes/*.xml
|
|
|
|
|
|
- name: Run C compiler on `gdextension_interface.h`
|
|
- name: Run C compiler on `gdextension_interface.h`
|