浏览代码

fix names, fix python3 commands, build player on mac backcompat

/yamato-linux-debug-venv
Chris Elion 4 年前
当前提交
22bca2b0
共有 4 个文件被更改,包括 5 次插入4 次删除
  1. 2
      .yamato/gym-interface-test.yml
  2. 2
      .yamato/python-ll-api-test.yml
  3. 1
      .yamato/training-int-tests.yml
  4. 4
      ml-agents/tests/yamato/yamato_utils.py

2
.yamato/gym-interface-test.yml


---
{% for editor in test_editors %}
test_gym_interface_{{ editor.version }}:
name: Test Mac Gym Interface {{ editor.version }}
name: Test Linux Gym Interface {{ editor.version }}
agent:
type: Unity::VM
image: package-ci/ubuntu:stable

2
.yamato/python-ll-api-test.yml


---
{% for editor in test_editors %}
test_mac_ll_api_{{ editor.version }}:
name: Test Mac LL-API {{ editor.version }}
name: Test Linux LL-API {{ editor.version }}
agent:
type: Unity::VM
image: package-ci/ubuntu:stable

1
.yamato/training-int-tests.yml


# 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:

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


venv_path += "_" + mlagents_python_version
# Set up the venv and install mlagents
subprocess.check_call(f"python -m venv {venv_path}", shell=True)
subprocess.check_call(f"python3 -m venv {venv_path}", shell=True)
pip_commands = ["--upgrade pip", "--upgrade setuptools"]
if mlagents_python_version:
# install from pypi

for cmd in pip_commands:
pip_index_url = "--index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple"
subprocess.check_call(
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

正在加载...
取消
保存