generated from ut-issl/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #243 from ut-issl/develop
Update main (v3.5.0) on 2022-02-08
- Loading branch information
Showing
372 changed files
with
32,754 additions
and
24,409 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[flake8] | ||
max-line-length = 100 | ||
ignore = | ||
# black と競合するので | ||
E203, | ||
E501, | ||
W503, | ||
W504, | ||
# https://github.com/ut-issl/c2a-core/issues/195 | ||
E402 |
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
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 |
---|---|---|
|
@@ -19,6 +19,45 @@ jobs: | |
- name: setup | ||
shell: bash | ||
run: ./setup.sh | ||
- name: check_coding_rule | ||
run: python ./src_core/Script/CI/check_coding_rule.py ./src_core/Script/CI/check_coding_rule.json | ||
- name: check coding rule | ||
id: check | ||
shell: bash -e {0} | ||
continue-on-error: true | ||
working-directory: ./Examples/minimum_user_for_s2e/src | ||
run: | | ||
python ./src_core/Script/CI/check_coding_rule.py ./src_core/Script/CI/check_coding_rule.json | tee /tmp/coding-rule.log | ||
status="${PIPESTATUS[0]}" | ||
echo "status: ${status}" | ||
echo "::set-output name=status::${status}" | ||
exit "${status}" | ||
- name: install reviewdog | ||
uses: reviewdog/[email protected] | ||
|
||
- name: fix error log source file path | ||
run: | | ||
sed 's/.\/src_core\///g' < /tmp/coding-rule.log \ | ||
| > ./coding-rule.log \ | ||
sed 's/.\/src_user/Examples\/minimum_user_for_s2e\/src\/src_user/g' | ||
cat ./coding-rule.log | ||
- name: reviewdog(github-pr-review) | ||
env: | ||
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
reviewdog \ | ||
-name 'check_coding_rule' \ | ||
-level error \ | ||
-fail-on-error=true \ | ||
-filter-mode=added \ | ||
-diff="git diff FETCH_HEAD" \ | ||
-reporter=github-pr-review \ | ||
-efm="%-GThe above files are invalid coding rule." \ | ||
-efm="%E%f: %l: %m" \ | ||
-efm="%Z%s" \ | ||
< coding-rule.log | ||
- name: exit | ||
shell: bash | ||
run: | | ||
exit $(( "${{ steps.check.outputs.status }}" )) |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: reviewdog / python format check | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
pull_request: | ||
|
||
jobs: | ||
black_format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
# - name: check python format with black | ||
# uses: psf/black@stable | ||
|
||
- uses: reviewdog/action-black@v2 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# reporter: github-pr-review # TODO: いい感じになったら直す | ||
reporter: github-pr-check | ||
filter_mode: nofilter | ||
fail_on_error: true | ||
level: warning |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: reviewdog / lint python | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
pull_request: | ||
|
||
jobs: | ||
flake8_lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up python environment | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.8" | ||
|
||
- name: flake8 Lint | ||
uses: reviewdog/action-flake8@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
reporter: github-pr-review | ||
filter_mode: nofilter | ||
fail_on_error: true | ||
level: warning |
Oops, something went wrong.