Skip to content

Commit 7e02d51

Browse files
authored
[yamato] Use triggers to execute tests for specific changes. (#3439)
1 parent 1b836ce commit 7e02d51

File tree

3 files changed

+25
-18
lines changed

3 files changed

+25
-18
lines changed

.yamato/com.unity.ml-agents-test.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,10 @@ test_{{ platform.name }}_{{ editor.version }}:
3434
dependencies:
3535
- .yamato/com.unity.ml-agents-pack.yml#pack
3636
triggers:
37-
pull_requests:
38-
- targets:
39-
only:
40-
- "master"
41-
- "/release-.*/"
42-
- "/hotfix-.*/"
37+
changes:
38+
only:
39+
- "com.unity.ml-agents/**"
40+
- ".yamato/com.unity.ml-agents-test.yml"
41+
4342
{% endfor %}
4443
{% endfor %}

.yamato/standalone-build-test.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ test_mac_standalone_{{ editor.version }}:
1515
- pip install pyyaml
1616
- python -u -m ml-agents.tests.yamato.standalone_build_tests
1717
triggers:
18-
pull_requests:
19-
- targets:
20-
only:
21-
- "master"
22-
- "/release-.*/"
23-
- "/hotfix-.*/"
18+
changes:
19+
only:
20+
- "com.unity.ml-agents/**"
21+
- "Project/**"
22+
- ".yamato/standalone-build-test.yml"
23+
except:
24+
- "*.md"
25+
- "com.unity.ml-agents/*.md"
26+
- "com.unity.ml-agents/**/*.md"
2427
{% endfor %}

.yamato/training-int-tests.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,17 @@ test_mac_training_int_{{ editor.version }}:
1515
- pip install pyyaml
1616
- python -u -m ml-agents.tests.yamato.training_int_tests
1717
triggers:
18-
pull_requests:
19-
- targets:
20-
only:
21-
- "master"
22-
- "/release-.*/"
23-
- "/hotfix-.*/"
18+
changes:
19+
only:
20+
- "com.unity.ml-agents/**"
21+
- "Project/**"
22+
- "ml-agents/**"
23+
- "ml-agents-envs/**"
24+
- ".yamato/training-int-tests.yml"
25+
except:
26+
- "*.md"
27+
- "com.unity.ml-agents/*.md"
28+
- "com.unity.ml-agents/**/*.md"
2429
artifacts:
2530
unit:
2631
paths:

0 commit comments

Comments
 (0)