您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
45 行
1.7 KiB
45 行
1.7 KiB
{% metadata_file .yamato/test_versions.metafile %}
|
|
---
|
|
{% for editor in test_editors %}
|
|
{% for backend in scripting_backends %}
|
|
test_linux_training_int_{{ editor.version }}_{{ backend.backend }}:
|
|
name: Test Linux Fast Training {{ editor.version }} {{ backend.backend }}
|
|
agent:
|
|
type: Unity::VM
|
|
image: package-ci/ubuntu:v1.3.1-719011
|
|
flavor: b1.medium
|
|
variables:
|
|
UNITY_VERSION: {{ editor.version }}
|
|
commands:
|
|
- |
|
|
sudo apt-get update && sudo apt-get install -y python3-venv
|
|
python3 -m venv venv && source venv/bin/activate
|
|
python -m pip install pyyaml --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
|
|
python -u -m ml-agents.tests.yamato.training_int_tests
|
|
dependencies:
|
|
- .yamato/standalone-build-test.yml#test_linux_standalone_{{ editor.version }}_{{ backend.backend }}
|
|
triggers:
|
|
cancel_old_ci: true
|
|
expression: |
|
|
(pull_request.target eq "main" OR
|
|
pull_request.target match "release.+") AND
|
|
NOT pull_request.draft AND
|
|
(pull_request.changes.any match "com.unity.ml-agents/**" OR
|
|
pull_request.changes.any match "com.unity.ml-agents.extensions/**" OR
|
|
pull_request.changes.any match "Project/**" OR
|
|
pull_request.changes.any match "ml-agents/**" OR
|
|
pull_request.changes.any match "ml-agents-envs/**" OR
|
|
pull_request.changes.any match ".yamato/training-int-tests.yml") AND
|
|
NOT pull_request.changes.all match "**/*.md"
|
|
artifacts:
|
|
logs:
|
|
paths:
|
|
- "artifacts/standalone_build.txt"
|
|
- "artifacts/inference.nn.txt"
|
|
- "artifacts/inference.onnx.txt"
|
|
standalonebuild:
|
|
paths:
|
|
- "artifacts/testPlayer*/**"
|
|
- "artifacts/models/**"
|
|
{% endfor %}
|
|
{% endfor %}
|