From cb1efa54bbc4db80dd465b65d60c51e18de4783c Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Fri, 18 Feb 2022 11:54:44 +0100 Subject: [PATCH] Add `workflow_dispatch` ci trigger (#66697) --- .github/workflows/ci.yaml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a2345081b50..8492a15a8a3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,6 +8,16 @@ on: - rc - master 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: CACHE_VERSION: 9 @@ -108,7 +118,8 @@ jobs: if [[ "${{ github.ref }}" == "refs/heads/dev" ]] \ || [[ "${{ github.ref }}" == "refs/heads/master" ]] \ || [[ "${{ github.ref }}" == "refs/heads/rc" ]] \ - || [[ "${{ steps.core.outputs.any }}" == "true" ]]; + || [[ "${{ steps.core.outputs.any }}" == "true" ]] \ + || [[ "${{ github.event.inputs.full }}" == "true" ]]; then test_groups="[1, 2, 3, 4, 5, 6]" test_group_count=6 @@ -707,7 +718,8 @@ jobs: pytest: 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: - changes - gen-requirements-all -- GitLab