{% if platform.name == "linux" %}
expression: |
(pull_request.target eq "main" OR
pull_request.target match "release.+") AND
pull_request.target match "2.0-verified.*") AND
NOT pull_request.draft AND
(pull_request.changes.any match "com.unity.ml-agents/**" OR
pull_request.changes.any match " {{ editor.testProject }}/**" OR
cancel_old_ci: true
pull_request.changes.any match ".yamato/com.unity.ml-agents-optional-dep-tests.yml")
{% if editor.extra_test == "sensor" %}
pull_request.changes.any match "com.unity.ml-agents.extensions/**" OR
{% if editor.extra_test == "gym" %}
pull_request.changes.any match "Project/**" OR
(pull_request.changes.any match "protobuf-definitions/**" OR
pull_request.changes.any match "com.unity.ml-agents/Runtime/Grpc/CommunicatorObjects/**" OR
{% if editor.extra_test == "llapi" %}