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
115bcc0b
Commit
115bcc0b
authored
Feb 28, 2022
by
FrankLeeeee
Committed by
Frank Lee
Mar 11, 2022
Browse files
added pypi publication CI and remove formatting CI
parent
b105371a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
39 deletions
+26
-39
.github/workflows/PR_CI.yml
.github/workflows/PR_CI.yml
+0
-39
.github/workflows/release.yml
.github/workflows/release.yml
+26
-0
No files found.
.github/workflows/PR_CI.yml
View file @
115bcc0b
...
@@ -49,42 +49,3 @@ jobs:
...
@@ -49,42 +49,3 @@ jobs:
pytest tests
pytest tests
env
:
env
:
DATA
:
/data/scratch/cifar-10
DATA
:
/data/scratch/cifar-10
format_check
:
name
:
Format Check
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
uses
:
actions/checkout@v2
-
name
:
autoyapf
id
:
autoyapf
uses
:
mritunjaysharma394/autoyapf@v2
with
:
args
:
--style google --recursive --in-place .
-
name
:
Check for modified files
id
:
git-check
run
:
echo ::set-output name=modified::$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi)
-
name
:
Push changes
if
:
steps.git-check.outputs.modified == 'true'
run
:
|
git config --global user.name 'github-actions'
git config --global user.email 'github-actions@github.com'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git commit -am "Automated autoyapf fixes"
-
name
:
Create Pull Request
# if: steps.format.outputs.has-changes == 'true'
uses
:
peter-evans/create-pull-request@v3
with
:
title
:
'
[Bot]
Automated
PR
to
fix
formatting
errors'
body
:
|
Automated PR to fix formatting errors
committer
:
GitHub <noreply@github.com>
author
:
github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
assignees
:
${{ github.actor }}
reviewers
:
frankleeeee
.github/workflows/release.yml
0 → 100644
View file @
115bcc0b
name
:
Publish to PyPI
on
:
workflow_dispatch
jobs
:
build-n-publish
:
if
:
(github.base_ref == 'main' || github.base_ref == 'develop') && github.repository == 'hpcaitech/ColossalAI' && contains('["FrankLeeeee", "ver217", "feifeibear", "kurisusnowdeng"]', github.actor)
name
:
Build and publish Python 🐍 distributions 📦 to PyPI or Test PyPI
runs-on
:
ubuntu-latest
timeout-minutes
:
20
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
actions/setup-python@v2
# 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
if
:
github.base_ref == 'develop'
uses
:
pypa/gh-action-pypi-publish@release/v1
with
:
user
:
__token__
password
:
${{ secrets.TEST_PYPI_API_TOKEN }}
-
name
:
Publish package to PyPI
if
:
github.base_ref == 'main'
uses
:
pypa/gh-action-pypi-publish@release/v1
with
:
user
:
__token__
password
:
${{ secrets.PYPI_API_TOKEN }}
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