mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
CI: fix linters on partial runs with multiple components (#60331)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
213be1f15e
commit
18a82e43a4
5
.github/workflows/ci.yaml
vendored
5
.github/workflows/ci.yaml
vendored
@ -230,6 +230,7 @@ jobs:
|
|||||||
pre-commit run --hook-stage manual bandit --all-files --show-diff-on-failure
|
pre-commit run --hook-stage manual bandit --all-files --show-diff-on-failure
|
||||||
- name: Run bandit (partially)
|
- name: Run bandit (partially)
|
||||||
if: needs.changes.outputs.test_full_suite == 'false'
|
if: needs.changes.outputs.test_full_suite == 'false'
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
pre-commit run --hook-stage manual bandit --files {homeassistant,tests}/components/${{ needs.changes.outputs.integrations_glob }}/* --show-diff-on-failure
|
pre-commit run --hook-stage manual bandit --files {homeassistant,tests}/components/${{ needs.changes.outputs.integrations_glob }}/* --show-diff-on-failure
|
||||||
@ -278,6 +279,7 @@ jobs:
|
|||||||
pre-commit run --hook-stage manual black --all-files --show-diff-on-failure
|
pre-commit run --hook-stage manual black --all-files --show-diff-on-failure
|
||||||
- name: Run black (partially)
|
- name: Run black (partially)
|
||||||
if: needs.changes.outputs.test_full_suite == 'false'
|
if: needs.changes.outputs.test_full_suite == 'false'
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
pre-commit run --hook-stage manual black --files {homeassistant,tests}/components/${{ needs.changes.outputs.integrations_glob }}/* --show-diff-on-failure
|
pre-commit run --hook-stage manual black --files {homeassistant,tests}/components/${{ needs.changes.outputs.integrations_glob }}/* --show-diff-on-failure
|
||||||
@ -329,6 +331,7 @@ jobs:
|
|||||||
pre-commit run --hook-stage manual flake8 --all-files
|
pre-commit run --hook-stage manual flake8 --all-files
|
||||||
- name: Run flake8 (partially)
|
- name: Run flake8 (partially)
|
||||||
if: needs.changes.outputs.test_full_suite == 'false'
|
if: needs.changes.outputs.test_full_suite == 'false'
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
pre-commit run --hook-stage manual flake8 --files {homeassistant,tests}/components/${{ needs.changes.outputs.integrations_glob }}/*
|
pre-commit run --hook-stage manual flake8 --files {homeassistant,tests}/components/${{ needs.changes.outputs.integrations_glob }}/*
|
||||||
@ -596,6 +599,7 @@ jobs:
|
|||||||
pylint homeassistant
|
pylint homeassistant
|
||||||
- name: Run pylint (partially)
|
- name: Run pylint (partially)
|
||||||
if: needs.changes.outputs.test_full_suite == 'false'
|
if: needs.changes.outputs.test_full_suite == 'false'
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
pylint homeassistant/components/${{ needs.changes.outputs.integrations_glob }}
|
pylint homeassistant/components/${{ needs.changes.outputs.integrations_glob }}
|
||||||
@ -635,6 +639,7 @@ jobs:
|
|||||||
mypy homeassistant
|
mypy homeassistant
|
||||||
- name: Run mypy (partially)
|
- name: Run mypy (partially)
|
||||||
if: needs.changes.outputs.test_full_suite == 'false'
|
if: needs.changes.outputs.test_full_suite == 'false'
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
mypy homeassistant/components/${{ needs.changes.outputs.integrations_glob }}
|
mypy homeassistant/components/${{ needs.changes.outputs.integrations_glob }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user