mirror of
https://github.com/esphome/esphome.git
synced 2025-07-28 14:16:40 +00:00
Fix clang-tidy skipping when Python linters are skipped (#9463)
This commit is contained in:
parent
5416cee2c9
commit
b21c76a6c6
30
.github/workflows/ci.yml
vendored
30
.github/workflows/ci.yml
vendored
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user