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
725a39f4
Unverified
Commit
725a39f4
authored
Mar 17, 2022
by
Frank Lee
Committed by
GitHub
Mar 17, 2022
Browse files
update github CI with the current workflow (#441)
parent
5a1e33b9
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
19 deletions
+31
-19
.github/workflows/assign_reviewer.yml
.github/workflows/assign_reviewer.yml
+1
-2
.github/workflows/build.yml
.github/workflows/build.yml
+2
-5
.github/workflows/compatibility_test.yml
.github/workflows/compatibility_test.yml
+1
-1
.github/workflows/release.yml
.github/workflows/release.yml
+2
-10
.github/workflows/release_test.yml
.github/workflows/release_test.yml
+24
-0
.github/workflows/submodule.yml
.github/workflows/submodule.yml
+1
-1
No files found.
.github/workflows/assign_reviewer.yml
View file @
725a39f4
...
@@ -9,8 +9,7 @@ jobs:
...
@@ -9,8 +9,7 @@ jobs:
name
:
Assign Reviewer for PR
name
:
Assign Reviewer for PR
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
if
:
|
if
:
|
github.event.pull_request.draft == false &&
github.event.pull_request.draft == false && github.base_ref == 'main'
(github.base_ref == 'main' || github.base_ref == 'develop')
&& github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI'
&& github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI'
&& toJson(github.event.pull_request.requested_reviewers) == '[]'
&& toJson(github.event.pull_request.requested_reviewers) == '[]'
steps
:
steps
:
...
...
.github/workflows/build.yml
View file @
725a39f4
...
@@ -8,8 +8,8 @@ jobs:
...
@@ -8,8 +8,8 @@ jobs:
build
:
build
:
name
:
Build and Test Colossal-AI
name
:
Build and Test Colossal-AI
if
:
|
if
:
|
github.event.pull_request.draft == false &&
github.event.pull_request.draft == false &&
(
github.base_ref == 'main'
|| github.base_ref == 'develop')
&&
github.base_ref == 'main' &&
github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI' &&
github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI' &&
contains( github.event.pull_request.labels.*.name, 'Run Build and Test')
contains( github.event.pull_request.labels.*.name, 'Run Build and Test')
runs-on
:
[
self-hosted
,
gpu
]
runs-on
:
[
self-hosted
,
gpu
]
...
@@ -18,9 +18,6 @@ jobs:
...
@@ -18,9 +18,6 @@ jobs:
options
:
--gpus all --rm --ipc=host -v /data/scratch/cifar-10:/data/scratch/cifar-10
options
:
--gpus all --rm --ipc=host -v /data/scratch/cifar-10:/data/scratch/cifar-10
timeout-minutes
:
40
timeout-minutes
:
40
steps
:
steps
:
-
name
:
Setup Environment
run
:
|
export https_proxy=http://172.17.0.1:7890 http_proxy=http://172.17.0.1:7890 all_proxy=socks5://172.17.0.1:7890
-
name
:
Install dependencies
-
name
:
Install dependencies
run
:
|
run
:
|
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
...
...
.github/workflows/compatibility_test.yml
View file @
725a39f4
...
@@ -5,7 +5,7 @@ on: workflow_dispatch
...
@@ -5,7 +5,7 @@ on: workflow_dispatch
jobs
:
jobs
:
build
:
build
:
name
:
Test for PyTorch compatibility
name
:
Test for PyTorch compatibility
if
:
(
github.base_ref == 'main'
|| github.base_ref == 'develop')
&& github.repository == 'hpcaitech/ColossalAI'
if
:
github.base_ref == 'main' && github.repository == 'hpcaitech/ColossalAI'
runs-on
:
[
self-hosted
,
aws
]
runs-on
:
[
self-hosted
,
aws
]
strategy
:
strategy
:
fail-fast
:
false
fail-fast
:
false
...
...
.github/workflows/release.yml
View file @
725a39f4
...
@@ -4,8 +4,8 @@ on: workflow_dispatch
...
@@ -4,8 +4,8 @@ on: workflow_dispatch
jobs
:
jobs
:
build-n-publish
:
build-n-publish
:
if
:
(
github.base_ref == 'main'
|| github.base_ref == 'develop')
&& github.repository == 'hpcaitech/ColossalAI' && contains('["FrankLeeeee", "ver217", "feifeibear", "kurisusnowdeng"]', github.actor)
if
:
github.base_ref == 'main' && github.repository == 'hpcaitech/ColossalAI' && contains('["FrankLeeeee", "ver217", "feifeibear", "kurisusnowdeng"]', github.actor)
name
:
Build and publish Python 🐍 distributions 📦 to PyPI
or Test PyPI
name
:
Build and publish Python 🐍 distributions 📦 to PyPI
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
timeout-minutes
:
20
timeout-minutes
:
20
steps
:
steps
:
...
@@ -15,15 +15,7 @@ jobs:
...
@@ -15,15 +15,7 @@ jobs:
python-version
:
'
3.7.4'
python-version
:
'
3.7.4'
# publish to PyPI if executed on the main branch
# publish to PyPI if executed on the main branch
# publish to Test PyPI if executed on the develop branch
# publish to Test PyPI if executed on the develop branch
-
name
:
Publish package to Test PyPI
if
:
github.base_ref == 'develop'
uses
:
pypa/gh-action-pypi-publish@release/v1
with
:
user
:
__token__
password
:
${{ secrets.TEST_PYPI_API_TOKEN }}
verbose
:
true
-
name
:
Publish package to PyPI
-
name
:
Publish package to PyPI
if
:
github.base_ref == 'main'
uses
:
pypa/gh-action-pypi-publish@release/v1
uses
:
pypa/gh-action-pypi-publish@release/v1
with
:
with
:
user
:
__token__
user
:
__token__
...
...
.github/workflows/release_test.yml
0 → 100644
View file @
725a39f4
name
:
Publish to Test PyPI
on
:
workflow_dispatch
jobs
:
build-n-publish
:
if
:
github.base_ref == 'main' && github.repository == 'hpcaitech/ColossalAI' && contains('["FrankLeeeee", "ver217", "feifeibear", "kurisusnowdeng"]', github.actor)
name
:
Build and publish Python 🐍 distributions 📦 to Test PyPI
runs-on
:
ubuntu-latest
timeout-minutes
:
20
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
actions/setup-python@v2
with
:
python-version
:
'
3.7.4'
# publish to PyPI if executed on the main branch
# publish to Test PyPI if executed on the develop branch
-
name
:
Publish package to Test PyPI
uses
:
pypa/gh-action-pypi-publish@release/v1
with
:
user
:
__token__
password
:
${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url
:
https://test.pypi.org/legacy/
verbose
:
true
.github/workflows/submodule.yml
View file @
725a39f4
...
@@ -13,7 +13,7 @@ jobs:
...
@@ -13,7 +13,7 @@ jobs:
-
name
:
Checkout
-
name
:
Checkout
uses
:
actions/checkout@v2
uses
:
actions/checkout@v2
with
:
with
:
ref
:
'
develop
'
ref
:
'
main
'
submodules
:
true
submodules
:
true
-
name
:
echo
-
name
:
echo
...
...
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