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
7d15ec7f
Unverified
Commit
7d15ec7f
authored
Feb 04, 2022
by
BoxiangW
Committed by
GitHub
Feb 04, 2022
Browse files
Update github actions (#205)
parent
5420809f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
.github/workflows/PR_CI.yml
.github/workflows/PR_CI.yml
+12
-3
.github/workflows/close_inactive.yml
.github/workflows/close_inactive.yml
+1
-0
No files found.
.github/workflows/PR_CI.yml
View file @
7d15ec7f
...
...
@@ -3,6 +3,15 @@ name: Pull Request CI and Build
on
:
pull_request
jobs
:
cancel_previous_workflow
:
runs-on
:
ubuntu-latest
if
:
github.event.pull_request.draft ==
false
&& github.base_ref == 'main' && 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
...
...
@@ -15,7 +24,7 @@ jobs:
build
:
name
:
Build and Test Colossal-AI
if
:
${{ always() }} && github.event.pull_request.draft ==
false
&& github.base_ref == 'main' && github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI'
needs
:
[
assign_reviewer
]
needs
:
[
cancel_previous_workflow
,
assign_reviewer
]
runs-on
:
[
self-hosted
,
gpu
]
container
:
image
:
nvcr.io/nvidia/pytorch:21.07-py3
...
...
@@ -43,8 +52,8 @@ jobs:
format_check
:
name
:
Format Check
if
:
${{ always() }} &&
github.event.pull_request.draft ==
false
&& github.base_ref == 'main' && github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI'
needs
:
[
assign_reviewer
,
build
]
if
:
github.event.pull_request.draft ==
false
&& github.base_ref == 'main' &&
github.head_ref == 'develop' &&
github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI'
needs
:
[
build
]
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout repo
...
...
.github/workflows/close_inactive.yml
View file @
7d15ec7f
...
...
@@ -5,6 +5,7 @@ on:
jobs
:
close-issues
:
if
:
github.event.pull_request.draft ==
false
&& github.base_ref == 'main' && github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI'
runs-on
:
ubuntu-latest
permissions
:
issues
:
write
...
...
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