浏览代码

check for exact path to exe

/yamato-linux-debug-venv
Chris Elion 4 年前
当前提交
4f882265
共有 3 个文件被更改,包括 10 次插入7 次删除
  1. 12
      .yamato/training-int-tests.yml
  2. 3
      ml-agents-envs/mlagents_envs/env_utils.py
  3. 2
      ml-agents/tests/yamato/yamato_utils.py

12
.yamato/training-int-tests.yml


- "artifacts/inference.onnx.txt"
standalonebuild:
paths:
- "artifacts/testplayer*/**"
- "artifacts/testPlayer*/**"
- "artifacts/models/**"
{% endfor %}

commands:
- |
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
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.standalone_build_tests --build-target=mac
python -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 --python==0.16.0
triggers:
cancel_old_ci: true
expression: |

- "artifacts/inference.onnx.txt"
standalonebuild:
paths:
- "artifacts/testplayer*/**"
- "artifacts/testPlayer*/**"
- "artifacts/models/**"

3
ml-agents-envs/mlagents_envs/env_utils.py


candidates = glob.glob(env_path + ".x86_64")
if len(candidates) == 0:
candidates = glob.glob(env_path + ".x86")
if len(candidates) == 0:
if os.path.isfile(env_path):
candidates = [env_path]
if len(candidates) > 0:
launch_string = candidates[0]

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


) -> int:
"""
Run BuildStandalonePlayerOSX test to produce a player. The location defaults to
artifacts/standalone_build/testPlayer.
artifacts/standalonebuild/testPlayer.
"""
unity_exe = get_unity_executable_path()
print(f"Running BuildStandalonePlayer via {unity_exe}")

正在加载...
取消
保存