-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
27 additions
and
7 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
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 |
---|---|---|
|
@@ -9,9 +9,30 @@ jobs: | |
name: Code Format | ||
runs-on: ubuntu-latest | ||
# This job will be required to pass before merging to master branch. | ||
steps: | ||
- uses: actions/checkout@v2 | ||
steps: | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- name: Check code format | ||
run: | | ||
python3 -m pip install yapf gitpython colorama isort | ||
python3 python/taichi/code_format.py | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: Auto Code Format | ||
commit_user_name: Taichi Gardener | ||
commit_user_email: [email protected] | ||
commit_author: taichigardener <[email protected]> | ||
# - name: Commit changes | ||
#run: | | ||
#git config --local user.email "[email protected]" | ||
#git config --local user.name "Taichi Gardener" | ||
#git add -A | ||
#git commit -m "Auto Code Format" | ||
#- name: Push changes | ||
#uses: ad-m/github-push-action@master | ||
#with: | ||
#GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
#branch: ${{ steps.pr_data.outputs.branch }} |
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