{% metadata_file .yamato/test_versions.metafile %} --- {% for config in test_configs %} test_training_int_{{ config.name }}: name: Test {{ config.name }} Fast Training 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 - unity-downloader-cli -u {{ config.version }} -c editor --wait --fast - python -u -m ml-agents.tests.yamato.training_int_tests # Backwards-compatibility tests. # If we make a breaking change to the communication protocol, these will need # to be disabled until the next release. - python -u -m ml-agents.tests.yamato.training_int_tests --python=0.16.0 - python -u -m ml-agents.tests.yamato.training_int_tests --csharp={{ config.csharp_backcompat_version }} dependencies: - .yamato/standalone-build-test.yml#test_standalone_{{ config.name }} 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 "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 %}