您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
46 行
1.2 KiB
46 行
1.2 KiB
version: 2.1
|
|
|
|
jobs:
|
|
build:
|
|
docker:
|
|
- image: circleci/python:3.6.1
|
|
working_directory: ~/repo
|
|
|
|
steps:
|
|
- checkout
|
|
|
|
- restore_cache:
|
|
keys:
|
|
- v1-dependencies-{{ checksum "ml-agents/setup.py" }}
|
|
# fallback to using the latest cache if no exact match is found
|
|
- v1-dependencies-
|
|
|
|
- run:
|
|
name: Install Dependencies
|
|
command: |
|
|
python3 -m venv venv
|
|
. venv/bin/activate
|
|
cd ml-agents-envs && pip install -e .
|
|
cd ../ml-agents && pip install -e .
|
|
pip install pytest-cov==2.6.1 codacy-coverage==1.3.11
|
|
cd ../gym-unity && pip install -e .
|
|
|
|
- save_cache:
|
|
paths:
|
|
- ./venv
|
|
key: v1-dependencies-{{ checksum "ml-agents/setup.py" }}
|
|
|
|
- run:
|
|
name: Run Tests for ml-agents and gym_unity
|
|
command: |
|
|
. venv/bin/activate
|
|
mkdir test-reports
|
|
pytest --cov=mlagents --cov-report xml --junitxml=test-reports/junit.xml -p no:warnings
|
|
python-codacy-coverage -r coverage.xml
|
|
|
|
- store_test_results:
|
|
path: test-reports
|
|
|
|
- store_artifacts:
|
|
path: test-reports
|
|
destination: test-reports
|