浏览代码

fix python->python3 commands

/MLA-462-yamato-win
Chris Elion 4 年前
当前提交
3aaebf46
共有 3 个文件被更改,包括 15 次插入14 次删除
  1. 16
      .yamato/standalone-build-test.yml
  2. 10
      .yamato/training-int-tests.yml
  3. 3
      ml-agents/tests/yamato/yamato_utils.py

16
.yamato/standalone-build-test.yml


variables:
UNITY_VERSION: {{ config.version }}
commands:
- pip install pyyaml --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
- python3 -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 -m pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade
- 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
- python3 -u -m ml-agents.tests.yamato.standalone_build_tests
- python3 -u -m ml-agents.tests.yamato.standalone_build_tests --scene=Assets/ML-Agents/Examples/Basic/Scenes/Basic.unity
- python3 -u -m ml-agents.tests.yamato.standalone_build_tests --scene=Assets/ML-Agents/Examples/Bouncer/Scenes/Bouncer.unity
- python3 -u -m ml-agents.tests.yamato.standalone_build_tests --scene=Assets/ML-Agents/Examples/WallJump/Scenes/WallJump.unity
- python3 -u -m ml-agents.tests.yamato.standalone_build_tests --scene=Assets/ML-Agents/TestScenes/TestCompressedGrid/TestGridCompressed.unity
- python3 -u -m ml-agents.tests.yamato.standalone_build_tests --scene=Assets/ML-Agents/TestScenes/TestCompressedTexture/TestTextureCompressed.unity
triggers:
cancel_old_ci: true
expression: |

10
.yamato/training-int-tests.yml


variables:
UNITY_VERSION: {{ config.version }}
commands:
- pip install pyyaml --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
- python3 -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 -m pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade
- python -u -m ml-agents.tests.yamato.training_int_tests
- python3 -u -m ml-agents.tests.yamato.training_int_tests
- 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 }}
- python3 -u -m ml-agents.tests.yamato.training_int_tests --python=0.16.0
- python3 -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:

3
ml-agents/tests/yamato/yamato_utils.py


pip_commands += extra_packages
for cmd in pip_commands:
pip_index_url = "--index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple"
# TODO fix venv activate command for windows (or just don't run it)
f"source {venv_path}/bin/activate; python -m pip install -q {cmd} {pip_index_url}",
f"source {venv_path}/bin/activate; python3 -m pip install -q {cmd} {pip_index_url}",
shell=True,
)
return venv_path

正在加载...
取消
保存