From 728dfa258176aa129a2034389535a837f414b014 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Sat, 19 Feb 2022 15:18:40 +0100 Subject: [PATCH] Don't run pytest CI jobs on push to forks (#66870) --- .github/workflows/ci.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8492a15a8a3..b1ff5dca8d1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -718,8 +718,10 @@ jobs: pytest: runs-on: ubuntu-latest - if: github.event.inputs.lint-only != 'true' && ( - needs.changes.outputs.test_full_suite == 'true' || needs.changes.outputs.tests_glob) + if: | + (github.event_name != 'push' || github.event.repository.full_name == 'home-assistant/core') + && github.event.inputs.lint-only != 'true' + && (needs.changes.outputs.test_full_suite == 'true' || needs.changes.outputs.tests_glob) needs: - changes - gen-requirements-all