Don't run pytest CI jobs on push to forks (#66870)

This commit is contained in:
Marc Mueller 2022-02-19 15:18:40 +01:00 committed by GitHub
parent 8e39ba387d
commit 728dfa2581
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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