forked from opendilab/DI-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 92b14d6
Showing
1,640 changed files
with
196,588 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[flake8] | ||
ignore=F401,F841,F403,E226,E126,W504,E265,E722,W503,W605,E741,E122,E731 | ||
max-line-length=120 | ||
statistics |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
name: Custom issue template | ||
about: Describe this issue template's purpose here. | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
- [ ] 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](https://opendilab.github.io/DI-engine/) | ||
- [ ] 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) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
## 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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# 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/*" | ||
|
||
jobs: | ||
test_algotest: | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, 'ci skip')" | ||
strategy: | ||
matrix: | ||
python-version: [3.8, 3.9] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: do_algotest | ||
env: | ||
WORKERS: 4 | ||
DURATIONS: 600 | ||
run: | | ||
python -m pip install . | ||
python -m pip install ".[test,k8s]" | ||
python -m pip install transformers | ||
./ding/scripts/install-k8s-tools.sh | ||
make algotest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: badges | ||
|
||
on: | ||
push: | ||
branches: [ main, 'badge/*', 'doc/*' ] | ||
pull_request: | ||
branches: [ main, 'badge/*', 'doc/*' ] | ||
|
||
jobs: | ||
update-badges: | ||
name: Update Badges | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [ 3.7 ] | ||
env: | ||
GIST_ID: 3690cccd811e4c5f771075c2f785c7bb | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Download cloc | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt-get install -y cloc | ||
- name: Get the Numbers | ||
run: | | ||
cloc . | ||
echo "CODE_LINES=$(./cloc.sh --loc)" >> $GITHUB_ENV | ||
echo "COMMENT_LINES=$(./cloc.sh --percentage)%" >> $GITHUB_ENV | ||
- name: Create Lines-of-Code-Badge | ||
uses: schneegans/[email protected] | ||
with: | ||
auth: ${{ secrets.GIST_SECRET }} | ||
gistID: ${{ env.GIST_ID }} | ||
filename: loc.json | ||
label: Lines of Code | ||
message: ${{ env.CODE_LINES }} | ||
color: lightgrey | ||
- name: Create Comments-Badge | ||
uses: schneegans/[email protected] | ||
with: | ||
auth: ${{ secrets.GIST_SECRET }} | ||
gistID: ${{ env.GIST_ID }} | ||
filename: comments.json | ||
label: Comments | ||
message: ${{ env.COMMENT_LINES }} | ||
color: green |
Oops, something went wrong.