|
|
|
|
|
|
commands: |
|
|
|
- | |
|
|
|
sudo apt-get update && sudo apt-get install -y python3-venv |
|
|
|
python3 -m venv venv && source venv/bin/activate && which python3 |
|
|
|
python3 -m pip install pyyaml --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple |
|
|
|
python3 -m pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade |
|
|
|
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 -m pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade |
|
|
|
python3 -u -m ml-agents.tests.yamato.training_int_tests |
|
|
|
python -u -m ml-agents.tests.yamato.training_int_tests |
|
|
|
dependencies: |
|
|
|
- .yamato/standalone-build-test.yml#test_linux_standalone_{{ editor.version }} |
|
|
|
(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 |
|
|
|
|
|
|
variables: |
|
|
|
UNITY_VERSION: {{ editor_version }} |
|
|
|
commands: |
|
|
|
- python3 -m 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 |
|
|
|
- python3 -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 {{ editor_version }} -c editor --wait --fast |
|
|
|
# Backwards-compatibility tests. |
|
|
|
# If we make a breaking change to the communication protocol, these will need |
|
|
|
# to be disabled until the next release. |
|
|
|
- python3 -u -m ml-agents.tests.yamato.standalone_build_tests --build-target=mac |
|
|
|
- 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={{ csharp_backcompat_version }} |
|
|
|
dependencies: |
|
|
|
- .yamato/standalone-build-test.yml#test_linux_training_int_{{ editor_version }} |
|
|
|
- | |
|
|
|
python3 -m venv venv && source venv/bin/activate |
|
|
|
python3 -m pip install pyyaml --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple |
|
|
|
python3 -m pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade |
|
|
|
unity-downloader-cli -u {{ editor_version }} -c editor --wait --fast |
|
|
|
# Backwards-compatibility tests. |
|
|
|
# If we make a breaking change to the communication protocol, these will need |
|
|
|
# to be disabled until the next release. |
|
|
|
python3 -u -m ml-agents.tests.yamato.standalone_build_tests --build-target=mac |
|
|
|
python -u -m ml-agents.tests.yamato.training_int_tests --csharp={{ csharp_backcompat_version }} |
|
|
|
deactivate |
|
|
|
python3 -m venv venv_old && source venv_old/bin/activate |
|
|
|
python -u -m ml-agents.tests.yamato.training_int_tests --python=0.16.0 |
|
|
|
triggers: |
|
|
|
cancel_old_ci: true |
|
|
|
expression: | |
|
|
|