@@ -29,20 +29,23 @@ test_platforms:
29
29
type : Unity::VM
30
30
image : package-ci/ubuntu:stable
31
31
flavor : b1.medium
32
+ packages :
33
+ - name : com.unity.ml-agents
34
+ - name : com.unity.ml-agents.extensions
32
35
---
33
36
34
37
all_package_tests :
35
38
name : Run All Combinations of Editors/Platforms Tests
36
39
dependencies :
37
40
{% for editor in test_editors %}
38
41
{% for platform in test_platforms %}
39
- - .yamato/com.unity.ml-agents-test.yml#test_ {{ platform.name }}_{{ editor.version }}
42
+ - .yamato/com.unity.ml-agents-test.yml#test_com.unity.ml-agents_ {{ platform.name }}_{{ editor.version }}
40
43
{% endfor %}
41
44
{% endfor %}
42
45
43
46
{% for editor in trunk_editor %}
44
47
{% for platform in test_platforms %}
45
- - .yamato/com.unity.ml-agents-test.yml#test_ {{ platform.name }}_{{ editor.version }}
48
+ - .yamato/com.unity.ml-agents-test.yml#test_com.unity.ml-agents_ {{ platform.name }}_{{ editor.version }}
46
49
{% endfor %}
47
50
{% endfor %}
48
51
triggers :
@@ -51,18 +54,23 @@ all_package_tests:
51
54
- branch : master
52
55
frequency : daily
53
56
54
- {% for editor in test_editors %}
55
- {% for platform in test_platforms %}
56
- test_{{ platform.name }}_{{ editor.version }} :
57
- name : com.unity.ml-agents test {{ editor.version }} on {{ platform.name }}
57
+ {% for package in packages %}
58
+ {% for editor in test_editors %}
59
+ {% for platform in test_platforms %}
60
+ test_{{ package.name }}_{{ platform.name }}_{{ editor.version }} :
61
+ name : {{ package.name }} test {{ editor.version }} on {{ platform.name }}
58
62
agent :
59
63
type : {{ platform.type }}
60
64
image : {{ platform.image }}
61
65
flavor : {{ platform.flavor}}
62
66
commands :
63
67
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
64
- - upm-ci package test -u {{ editor.version }} --package-path com.unity.ml-agents {{ editor.coverageOptions }}
68
+ - upm-ci project test -u {{ editor.version }} --project-path Project --package-filter {{ package.name }} {{ editor.coverageOptions }}
69
+
70
+ {% if package.name == "com.unity.ml-agents" %}
71
+ # TODO get coverage tests running for extensions too
65
72
- python ml-agents/tests/yamato/check_coverage_percent.py upm-ci~/test-results/ {{ editor.minCoveragePct }}
73
+ {% endif %}
66
74
artifacts :
67
75
logs :
68
76
paths :
@@ -77,15 +85,20 @@ test_{{ platform.name }}_{{ editor.version }}:
77
85
pull_request.target match "release.+") AND
78
86
NOT pull_request.draft AND
79
87
(pull_request.changes.any match "com.unity.ml-agents/**" OR
88
+ {% if package.name == "com.unity.ml-agents.extensions" %}
89
+ pull_request.changes.any match "com.unity.ml-agents.extensions/**" OR
90
+ {% endif %}
80
91
pull_request.changes.any match ".yamato/com.unity.ml-agents-test.yml")
81
92
{% endif %}
93
+ {% endfor %}
82
94
{% endfor %}
83
95
{% endfor %}
84
96
85
- {% for editor in trunk_editor %}
86
- {% for platform in test_platforms %}
87
- test_{{ platform.name }}_trunk :
88
- name : com.unity.ml-agents test {{ editor.version }} on {{ platform.name }}
97
+ {% for package in packages %}
98
+ {% for editor in trunk_editor %}
99
+ {% for platform in test_platforms %}
100
+ test_{{ package.name }}_{{ platform.name }}_trunk :
101
+ name : {{ package.name }} test {{ editor.version }} on {{ platform.name }}
89
102
agent :
90
103
type : {{ platform.type }}
91
104
image : {{ platform.image }}
@@ -94,8 +107,11 @@ test_{{ platform.name }}_trunk:
94
107
- python -m pip install unity-downloader-cli --extra-index-url https://artifactory.eu-cph-1.unityops.net/api/pypi/common-python/simple
95
108
- unity-downloader-cli -u trunk -c editor --wait --fast
96
109
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
97
- - upm-ci package test -u {{ editor.version }} --package-path com.unity.ml-agents {{ editor.coverageOptions }}
110
+ - upm-ci project test -u {{ editor.version }} --project-path Project --package-filter {{ package.name }} {{ editor.coverageOptions }}
111
+ {% if package.name == "com.unity.ml-agents" %}
112
+ # TODO get coverage tests running for extensions too
98
113
- python ml-agents/tests/yamato/check_coverage_percent.py upm-ci~/test-results/ {{ editor.minCoveragePct }}
114
+ {% endif %}
99
115
artifacts :
100
116
logs :
101
117
paths :
@@ -106,3 +122,4 @@ test_{{ platform.name }}_trunk:
106
122
cancel_old_ci : true
107
123
{% endfor %}
108
124
{% endfor %}
125
+ {% endfor %}
0 commit comments