Referencing https://github.com/RXT0112/Zernit/pull/40 i have repository that requires 271 checks (based on early establishment it will be probably closer to 500) where these tests are not expected to run on each even trigger -> How do i make a logic to trigger only relevant checks?
I.e if contributor contributes to python -> Run python-relevant tests
If all the checks are in the same woekflow, you can try to add a mark in the title or description of the PR (for example “[Python] Update files in Python project”), and use the below properties of github context to access the context of the title and description.Use the if conditioinals on each job/check to set whether execute the job/check.
github.event.pull_request.title – the title of the PR.
github.event.pull_request.body – the description of the PR.
if: contains(github.event.pull_request.title, '[Python]') || contains(github.event.pull_request.body, '[Python]')