-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add actions for pre-commit and ci test (#3)
* add actions for pre-commit and ci test * add pull request template * add issue template * fix dir * fix action * update dlrover version * change link / script for atorch * update action --------- Co-authored-by: 乙划 <[email protected]>
- Loading branch information
1 parent
aeba1f1
commit 4af4425
Showing
10 changed files
with
141 additions
and
6 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,2 @@ | ||
# root directory | ||
* @skydoorkai @adamantboy @hxdtest @nash635 |
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,39 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: report | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the unexpected case: | ||
1. What kink of training? [e.g. FDDP] | ||
2. The command using? [e.g. dlrover-run xxxxx xxxx] | ||
3. When and where? | ||
4. See error | ||
|
||
**Logs or Screenshots** | ||
Logs(necessary) or screenshots to help explain your problem. | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**APP Info (please complete the following information):** | ||
- DLRover: [e.g. 0.3.8] | ||
- Torch [e.g. 2.1.2] | ||
|
||
**ENV Info (please complete the following information):** | ||
- Platform: [e.g. ubuntu xxx] | ||
- Python: [e.g. 3.8.1] | ||
- GRPC [e.g. 1.5.x] | ||
|
||
**HARDWARE Info (please complete the following information):** | ||
- Device: [e.g. GPU A100 / NPU Ascend 910] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
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,10 @@ | ||
--- | ||
name: Question | ||
about: For questions. | ||
title: '' | ||
labels: question | ||
assignees: '' | ||
|
||
--- | ||
|
||
|
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,10 @@ | ||
--- | ||
name: atorch-pre-commit | ||
description: run pre-commit to check codes for atorch | ||
runs: | ||
using: 'docker' | ||
image: "easydl/atorch:aci" | ||
args: | ||
- "/bin/bash" | ||
- "-c" | ||
- "sh dev/scripts/pre-commit.sh" |
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,13 @@ | ||
--- | ||
name: atorch-python-test | ||
description: run pytest to execute python test cases of atorch python | ||
runs: | ||
using: 'docker' | ||
image: "registry.cn-hangzhou.aliyuncs.com/atorch/atorch-open-20240430:pt210" | ||
args: | ||
- "/bin/bash" | ||
- "-c" | ||
- "pip install dlrover[torch]==0.4.0 --no-deps \ | ||
&& echo -e 'import math\ninf = math.inf\nnan = math.nan\nstring_classes = \ | ||
(str, bytes)' > /opt/conda/lib/python3.8/site-packages/torch/_six.py \ | ||
&& PYTHONPATH=. pytest atorch/tests/common_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,15 @@ | ||
### What changes were proposed in this pull request? | ||
|
||
Please describe the changes you have made or proposed in this pull request. | ||
|
||
### Why are the changes needed? | ||
|
||
Explain the purpose or motivation behind these changes. What problem are you trying to solve? | ||
|
||
### Does this PR introduce any user-facing change? | ||
|
||
Specify whether this pull request introduces any changes that users will directly interact with or notice. | ||
|
||
### How was this patch tested? | ||
|
||
Detail the testing process you have undertaken to ensure the changes in this pull request are valid and working as intended. |
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,26 @@ | ||
--- | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
push: | ||
branches: [master] | ||
|
||
jobs: | ||
python-test: | ||
runs-on: self-hosted | ||
steps: | ||
# This step checks out a copy of your repository. | ||
- uses: actions/checkout@v3 | ||
with: | ||
clean: false | ||
# This step references the directory that contains the action. | ||
- uses: ./.github/actions/atorch-python-test | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# This step checks out a copy of your repository. | ||
- uses: actions/checkout@v3 | ||
# This step references the directory that contains the action. | ||
- uses: ./.github/actions/atorch-pre-commit |
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
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