File size: 1,704 Bytes
05c9ac2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{% metadata_file .yamato/test_versions.metafile %}
---
{% for editor in test_editors %}
test_compressed_obs_{{ editor.version }}:
  name: Test Compressed Sensor Observation {{ 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_compressed_sensor.py --env=artifacts/testPlayer-TestGridCompressed
      python ml-agents/tests/yamato/scripts/run_compressed_sensor.py --env=artifacts/testPlayer-TestTextureCompressed
  dependencies:
    - .yamato/standalone-build-test.yml#test_linux_standalone_{{ editor.version }}
  triggers:
    cancel_old_ci: true
    {% if editor.extra_test == "sensor" %}
    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 "com.unity.ml-agents.extensions/**" 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/compressed-sensor-test.yml") AND
      NOT pull_request.changes.all match "**/*.md"
    {% endif %}
{% endfor %}