Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
dfc3fafe
"...en/git@developer.sourcefind.cn:OpenDAS/colossalai.git" did not exist on "c425a69d52c714423bbc5a55f6f3c609723993d9"
Commit
dfc3fafe
authored
Mar 03, 2022
by
FrankLeeeee
Committed by
Frank Lee
Mar 11, 2022
Browse files
update unit testing CI rules
parent
bbbfe9b2
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
66 additions
and
8 deletions
+66
-8
.github/workflows/assign_reviewer.yml
.github/workflows/assign_reviewer.yml
+19
-0
.github/workflows/build.yml
.github/workflows/build.yml
+38
-0
.github/workflows/close_inactive.yml
.github/workflows/close_inactive.yml
+1
-0
.github/workflows/compatibility_test.yml
.github/workflows/compatibility_test.yml
+4
-7
.github/workflows/release.yml
.github/workflows/release.yml
+1
-0
.github/workflows/submodule.yml
.github/workflows/submodule.yml
+2
-0
setup.py
setup.py
+1
-1
No files found.
.github/workflows/assign_reviewer.yml
0 → 100644
View file @
dfc3fafe
name
:
Assign Reviewers for Team
on
:
pull_request
:
types
:
[
opened
]
jobs
:
assign_reviewer
:
name
:
Assign Reviewer for PR
runs-on
:
ubuntu-latest
if
:
|
github.event.pull_request.draft == false &&
(github.base_ref == 'main' || github.base_ref == 'develop')
&& github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI'
&& toJson(github.event.pull_request.requested_reviewers) == '[]'
steps
:
-
uses
:
kentaro-m/auto-assign-action@v1.2.1
with
:
configuration-path
:
'
.github/reviewer_list.yml'
.github/workflows/
PR_CI
.yml
→
.github/workflows/
build
.yml
View file @
dfc3fafe
name
:
Pull Request CI and
Build
name
:
Build
on
:
pull_request
on
:
pull_request
:
types
:
[
synchronize
,
labeled
]
jobs
:
cancel_previous_workflow
:
runs-on
:
ubuntu-latest
if
:
github.event.pull_request.draft ==
false
&& (github.base_ref == 'main' || github.base_ref == 'develop') && github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI'
steps
:
-
name
:
Cancel Previous Runs
uses
:
styfle/cancel-workflow-action@0.9.1
with
:
access_token
:
${{ github.token }}
assign_reviewer
:
name
:
Assign Reviewer for PR
runs-on
:
ubuntu-latest
if
:
github.event.pull_request.draft ==
false
&& (github.base_ref == 'main' || github.base_ref == 'develop') && github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI' && toJson(github.event.pull_request.requested_reviewers) == '[]'
steps
:
-
uses
:
kentaro-m/auto-assign-action@v1.2.1
with
:
configuration-path
:
'
.github/reviewer_list.yml'
build
:
name
:
Build and Test Colossal-AI
if
:
${{ always() }} && github.event.pull_request.draft ==
false
&& (github.base_ref == 'main' || github.base_ref == 'develop') && github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI'
needs
:
[
cancel_previous_workflow
,
assign_reviewer
]
if
:
|
github.event.pull_request.draft == false &&
(github.base_ref == 'main' || github.base_ref == 'develop') &&
github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI' &&
contains( github.event.pull_request.labels.*.name, 'Run Build and Test')
runs-on
:
[
self-hosted
,
gpu
]
container
:
image
:
nvcr.io/nvidia/pytorch:21.07-py3
...
...
.github/workflows/close_inactive.yml
View file @
dfc3fafe
name
:
Close inactive issues
on
:
schedule
:
-
cron
:
"
0
0
*
*
*"
...
...
.github/workflows/compatibility_test.yml
View file @
dfc3fafe
name
:
Compatibility Test
# set to pull_request for testing purpose
# will change to workflow_dispatch when PR to develop
on
:
pull_request
on
:
workflow_dispatch
jobs
:
build
:
name
:
Test for PyTorch compatibility
# comment for now, will uncomment when PR to develop
# if: (github.base_ref == 'main' || github.base_ref == 'develop') && github.repository == 'hpcaitech/ColossalAI'
runs-on
:
[
self-hosted
,
gpu
]
if
:
(github.base_ref == 'main' || github.base_ref == 'develop') && github.repository == 'hpcaitech/ColossalAI'
runs-on
:
[
self-hosted
,
aws
]
strategy
:
fail-fast
:
false
matrix
:
...
...
@@ -24,7 +21,7 @@ jobs:
container
:
image
:
${{ matrix.container }}
options
:
--gpus all --rm --ipc=host -v /data/scratch/cifar-10:/data/scratch/cifar-10
timeout-minutes
:
1
8
0
timeout-minutes
:
1
2
0
steps
:
-
name
:
Setup Environment
run
:
|
...
...
.github/workflows/release.yml
View file @
dfc3fafe
name
:
Publish to PyPI
on
:
workflow_dispatch
jobs
:
...
...
.github/workflows/submodule.yml
View file @
dfc3fafe
name
:
Synchronize Submodule
on
:
workflow_dispatch
:
schedule
:
...
...
@@ -12,6 +13,7 @@ jobs:
-
name
:
Checkout
uses
:
actions/checkout@v2
with
:
ref
:
'
develop'
submodules
:
true
-
name
:
echo
...
...
setup.py
View file @
dfc3fafe
...
...
@@ -218,7 +218,7 @@ setup(
extras_require
=
{
'zero'
:
fetch_requirements
(
'requirements/requirements-zero.txt'
),
},
python_requires
=
'>=3.
6
'
,
python_requires
=
'>=3.
7
'
,
classifiers
=
[
'Programming Language :: Python :: 3'
,
'License :: OSI Approved :: Apache Software License'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment