mirror of
https://github.com/home-assistant/core.git
synced 2025-06-20 21:17:06 +00:00
Add workflow_dispatch
ci trigger (#66697)
This commit is contained in:
parent
2abcd7cd94
commit
cb1efa54bb
16
.github/workflows/ci.yaml
vendored
16
.github/workflows/ci.yaml
vendored
@ -8,6 +8,16 @@ on:
|
|||||||
- rc
|
- rc
|
||||||
- master
|
- master
|
||||||
pull_request: ~
|
pull_request: ~
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
full:
|
||||||
|
description: 'Full run (regardless of changes)'
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
lint-only:
|
||||||
|
description: 'Skip pytest'
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CACHE_VERSION: 9
|
CACHE_VERSION: 9
|
||||||
@ -108,7 +118,8 @@ jobs:
|
|||||||
if [[ "${{ github.ref }}" == "refs/heads/dev" ]] \
|
if [[ "${{ github.ref }}" == "refs/heads/dev" ]] \
|
||||||
|| [[ "${{ github.ref }}" == "refs/heads/master" ]] \
|
|| [[ "${{ github.ref }}" == "refs/heads/master" ]] \
|
||||||
|| [[ "${{ github.ref }}" == "refs/heads/rc" ]] \
|
|| [[ "${{ github.ref }}" == "refs/heads/rc" ]] \
|
||||||
|| [[ "${{ steps.core.outputs.any }}" == "true" ]];
|
|| [[ "${{ steps.core.outputs.any }}" == "true" ]] \
|
||||||
|
|| [[ "${{ github.event.inputs.full }}" == "true" ]];
|
||||||
then
|
then
|
||||||
test_groups="[1, 2, 3, 4, 5, 6]"
|
test_groups="[1, 2, 3, 4, 5, 6]"
|
||||||
test_group_count=6
|
test_group_count=6
|
||||||
@ -707,7 +718,8 @@ jobs:
|
|||||||
|
|
||||||
pytest:
|
pytest:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: needs.changes.outputs.test_full_suite == 'true' || needs.changes.outputs.tests_glob
|
if: github.event.inputs.lint-only != 'true' && (
|
||||||
|
needs.changes.outputs.test_full_suite == 'true' || needs.changes.outputs.tests_glob)
|
||||||
needs:
|
needs:
|
||||||
- changes
|
- changes
|
||||||
- gen-requirements-all
|
- gen-requirements-all
|
||||||
|
Loading…
x
Reference in New Issue
Block a user