{% metadata_file .yamato/test_versions.metafile %} --- {% for config in test_configs %} test_standalone_{{ config.name }}: name: Test {{ config.name }} Standalone agent: type: {{ config.type }} image: {{ config.image }} flavor: {{ config.flavor}} variables: UNITY_VERSION: {{ config.version }} commands: - pip install pyyaml --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple # TODO remove the "--user" command and the path prefix when we can migrate away from the custom bokken image - python -m pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade --user - /Users/bokken/Library/Python/3.7/bin/unity-downloader-cli -u {{ config.version }} -c editor --wait --fast - python -u -m ml-agents.tests.yamato.standalone_build_tests - python -u -m ml-agents.tests.yamato.standalone_build_tests --scene=Assets/ML-Agents/Examples/Basic/Scenes/Basic.unity - python -u -m ml-agents.tests.yamato.standalone_build_tests --scene=Assets/ML-Agents/Examples/Bouncer/Scenes/Bouncer.unity - python -u -m ml-agents.tests.yamato.standalone_build_tests --scene=Assets/ML-Agents/Examples/WallJump/Scenes/WallJump.unity - python -u -m ml-agents.tests.yamato.standalone_build_tests --scene=Assets/ML-Agents/TestScenes/TestCompressedGrid/TestGridCompressed.unity - python -u -m ml-agents.tests.yamato.standalone_build_tests --scene=Assets/ML-Agents/TestScenes/TestCompressedTexture/TestTextureCompressed.unity triggers: cancel_old_ci: true expression: | (pull_request.target eq "master" 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 ".yamato/standalone-build-test.yml") AND NOT pull_request.changes.all match "**/*.md" artifacts: logs: paths: - "artifacts/standalone_build.txt" standalonebuild: paths: - "artifacts/testPlayer*/**" {% endfor %}