40 строки
1.7 KiB
YAML
40 строки
1.7 KiB
YAML
{% metadata_file .yamato/test_versions.metafile %}
|
|
---
|
|
{% for editor in test_editors %}
|
|
test_linux_ll_api_{{ editor.version }}:
|
|
name: Test Linux LL-API {{ editor.version }}
|
|
agent:
|
|
type: Unity::VM
|
|
image: ml-agents/ml-agents-ubuntu-18.04:latest
|
|
flavor: b1.medium
|
|
variables:
|
|
UNITY_VERSION: {{ editor.version }}
|
|
commands:
|
|
- |
|
|
eval "$($HOME/anaconda/bin/conda shell.bash hook)"
|
|
conda activate python3.8
|
|
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.setup_venv
|
|
python ml-agents/tests/yamato/scripts/run_llapi.py
|
|
python ml-agents/tests/yamato/scripts/run_llapi.py --env=artifacts/testPlayer-Basic
|
|
python ml-agents/tests/yamato/scripts/run_llapi.py --env=artifacts/testPlayer-WallJump
|
|
python ml-agents/tests/yamato/scripts/run_llapi.py --env=artifacts/testPlayer-Match3
|
|
dependencies:
|
|
- .yamato/standalone-build-test.yml#test_linux_standalone_{{ editor.version }}
|
|
triggers:
|
|
cancel_old_ci: true
|
|
{% if editor.extra_test == "llapi" %}
|
|
expression: |
|
|
(pull_request.target eq "main" OR
|
|
pull_request.target eq "develop" 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 "Project/**" OR
|
|
pull_request.changes.any match "ml-agents/tests/yamato/**" OR
|
|
pull_request.changes.any match "ml-agents-envs/**" OR
|
|
pull_request.changes.any match ".yamato/python-ll-api-test.yml") AND
|
|
NOT pull_request.changes.all match "**/*.md"
|
|
{% endif %}
|
|
{% endfor %}
|