提交 09050dba 编写于 作者: N niuyazhe

v0.1.0

上级
[run]
omit =
ding/utils/slurm_helper.py
ding/utils/file_helper.py
ding/utils/linklink_dist_helper.py
ding/utils/k8s_helper.py
ding/config/utils.py
ding/entry
ding/entry/tests/test_serial_entry_algo.py
ding/entry/dist_entry.py
ding/hpc_rl
ding/worker/collector/tests/speed_test
[flake8]
ignore=F401,F841,F403,E226,E126,W504,E265,E722,W503,W605,E741,E122
max-line-length=120
statistics
- [ ] I have marked all applicable categories:
+ [ ] exception-raising bug
+ [ ] RL algorithm bug
+ [ ] system worker bug
+ [ ] system utils bug
+ [ ] code design/refactor
+ [ ] documentation request
+ [ ] new feature request
- [ ] I have visited the [readme](https://github.com/opendilab/DI-engine/blob/github-dev/README.md) and [doc]()
- [ ] I have searched through the [issue tracker](https://github.com/opendilab/DI-engine/issues) and [pr tracker](https://github.com/opendilab/DI-engine/pulls)
- [ ] I have mentioned version numbers, operating system and environment, where applicable:
```python
import ding, torch, sys
print(ding.__version__, torch.__version__, sys.version, sys.platform)
```
## Description
## Related Issue
## TODO
## Check List
- [ ] merge the latest version source branch/repo, and resolve all the conflicts
- [ ] pass style check
- [ ] pass all the tests
# This workflow will check pytest
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: algo_test
on:
push:
paths:
- "ding/policy/*"
- "ding/model/*"
- "ding/rl_utils/*"
pull_request:
paths:
- "ding/policy/*"
- "ding/model/*"
- "ding/rl_utils/*"
jobs:
test_algotest:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip')"
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: do_algotest
env:
WORKERS: 4
DURATIONS: 600
run: |
python -m pip install .
python -m pip install ".[test]"
make algotest
# This workflow will check flake style
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: doc
on:
push:
branches: [main, github-dev, /^doc/.*$/]
pull_request:
branches: [main, github-dev, /^doc/.*$/]
jobs:
doc:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'doc skip')"
strategy:
matrix:
python-version: [3.7]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Generate
run: |
python -m pip install .
python -m pip install ".[doc]"
make docs
mv ding/docs/build/html public
rm -rf ding/docs/build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: public # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch
# This workflow will install Python dependencies
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: install
on:
- push
- pull_request
jobs:
install:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip')"
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: install dependencies
run: |
python -m pip install .
# This workflow will check pytest
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: platform_test
on: [push, pull_request]
jobs:
test_unittest:
runs-on: ${{ matrix.os }}
if: "!contains(github.event.head_commit.message, 'ci skip')"
strategy:
matrix:
# os: [macos-latest, windows-latest]
os: [macos-latest]
python-version: [3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: do_unittest
env:
WORKERS: 1
run: |
python -m pip install .
python -m pip install ".[test]"
make platformtest
# This workflow will check flake style
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: style
on: [push, pull_request]