Fix clang-tidy skipping when Python linters are skipped (#9463)

This commit is contained in:
J. Nick Koston 2025-07-13 13:04:14 -10:00 committed by GitHub
parent 5416cee2c9
commit b21c76a6c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -345,20 +345,31 @@ jobs:
run: script/ci-suggest-changes run: script/ci-suggest-changes
if: always() if: always()
clang-tidy-deps:
name: Clang-tidy dependencies
runs-on: ubuntu-24.04
needs:
- common
- ci-custom
- clang-format
- pytest
- determine-jobs
if: |
always() &&
needs.determine-jobs.outputs.clang-tidy == 'true'
steps:
- run: echo "All clang-tidy dependencies ready"
clang-tidy: clang-tidy:
name: ${{ matrix.name }} name: ${{ matrix.name }}
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
needs: needs:
- common - clang-tidy-deps
- ruff
- ci-custom
- clang-format
- flake8
- pylint
- pytest
- pyupgrade
- determine-jobs - determine-jobs
if: needs.determine-jobs.outputs.clang-tidy == 'true' if: |
always() &&
needs.determine-jobs.outputs.clang-tidy == 'true' &&
needs.clang-tidy-deps.result == 'success'
env: env:
GH_TOKEN: ${{ github.token }} GH_TOKEN: ${{ github.token }}
strategy: strategy:
@ -575,6 +586,7 @@ jobs:
- pytest - pytest
- integration-tests - integration-tests
- pyupgrade - pyupgrade
- clang-tidy-deps
- clang-tidy - clang-tidy
- determine-jobs - determine-jobs
- test-build-components - test-build-components