浏览代码
Run pytest on GPU (#4865)
Run pytest on GPU (#4865)
* make tests device-friendly * mark all tests in test_simple_rl/MLA-1734-demo-provider
GitHub
4 年前
当前提交
d7f549f9
共有 10 个文件被更改,包括 59 次插入 和 16 次删除
-
8ml-agents/mlagents/trainers/tests/torch/saver/test_saver.py
-
4ml-agents/mlagents/trainers/tests/torch/test_action_model.py
-
10ml-agents/mlagents/trainers/tests/torch/test_distributions.py
-
4ml-agents/mlagents/trainers/tests/torch/test_encoders.py
-
6ml-agents/mlagents/trainers/tests/torch/test_hybrid.py
-
8ml-agents/mlagents/trainers/tests/torch/test_networks.py
-
3ml-agents/mlagents/trainers/tests/torch/test_simple_rl.py
-
4ml-agents/mlagents/trainers/torch/encoders.py
-
24.yamato/pytest-gpu.yml
-
4pytest.ini
|
|||
pytest_gpu: |
|||
name: Pytest GPU |
|||
agent: |
|||
type: Unity::VM::GPU |
|||
image: package-ci/ubuntu:stable |
|||
flavor: b1.large |
|||
commands: |
|||
- | |
|||
sudo apt-get update && sudo apt-get install -y python3-venv |
|||
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 -u -m ml-agents.tests.yamato.setup_venv |
|||
python3 -m pip install --progress-bar=off -r test_requirements.txt --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple |
|||
python3 -m pip install torch==1.7.1+cu101 torchvision==0.8.2+cu101 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple |
|||
python3 -m pytest -m "not check_environment_trains" --junitxml=junit/test-results.xml -p no:warnings |
|||
triggers: |
|||
cancel_old_ci: true |
|||
recurring: |
|||
- branch: master |
|||
frequency: daily |
|||
artifacts: |
|||
logs: |
|||
paths: |
|||
- "artifacts/standalone_build.txt" |
|
|||
[pytest] |
|||
addopts = --strict-markers |
|||
markers = |
|||
check_environment_trains: Slow training tests, do not run on yamato |
撰写
预览
正在加载...
取消
保存
Reference in new issue