-
Notifications
You must be signed in to change notification settings - Fork 21
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 #1000 from StochSS/develop
Release of StochSS 2.1
- Loading branch information
Showing
241 changed files
with
23,517 additions
and
3,161 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 |
---|---|---|
|
@@ -2,4 +2,3 @@ | |
.gitignore | ||
examples/ | ||
internal/ | ||
README.md |
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,59 @@ | ||
name: PyLint On Pull Request | ||
on: [pull_request] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set Up Python | ||
uses: actions/setup-python@v2 | ||
- name: Install PyLint | ||
run: pip install --upgrade pylint | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Checkout Head | ||
run: git checkout $HEAD_REF | ||
env: | ||
HEAD_REF: ${{ github.event.pull_request.head.ref }} | ||
- name: Checkout Base | ||
run: git checkout $BASE_REF | ||
env: | ||
BASE_REF: ${{ github.event.pull_request.base.ref }} | ||
- name: Get Base Lint Score | ||
run: | | ||
echo ::set-env name=BASE_LINT::$(git diff --name-only --diff-filter=M $HEAD_REF | grep -E "\.py" | xargs pylint | grep -E -o "at [0-9.-]+" | grep -E -o [0-9.-]+) | ||
env: | ||
HEAD_REF: ${{ github.event.pull_request.head.ref }} | ||
if: always() | ||
- name: Checkout Head | ||
run: git checkout $HEAD_REF | ||
env: | ||
HEAD_REF: ${{ github.event.pull_request.head.ref }} | ||
- name: Get Lint Delta Sign (+/-) | ||
run: echo ::set-env name=PASSING_SCORE::$(git diff --name-only --diff-filter=M $BASE_REF | grep -E "\.py" | xargs pylint | grep -Eo "10, [+-]" | grep -Eo [+-] ) | ||
env: | ||
BASE_REF: ${{ github.event.pull_request.base.ref }} | ||
if: always() | ||
- name: Get Head Lint Score | ||
run: echo ::set-env name=HEAD_LINT::$(git diff --name-only --diff-filter=M $BASE_REF | grep -E "\.py" | xargs pylint | grep -E -o "at [0-9.-]+" | grep -E -o [0-9.-]+) | ||
env: | ||
BASE_REF: ${{ github.event.pull_request.base.ref }} | ||
if: always() | ||
- name: Get Added Files Lint Score | ||
run: echo ::set-env name=ADDED_LINT::$(git diff --name-only --diff-filter=A $BASE_REF | grep -E "\.py" | xargs pylint | grep -E -o "at [0-9.-]+" | grep -E -o [0-9.-]+) | ||
env: | ||
BASE_REF: ${{ github.event.pull_request.base.ref }} | ||
if: always() | ||
- name: Display Results | ||
run: | | ||
echo "Lint of modified files in base:" | ||
echo ${{ env.BASE_LINT }} | ||
echo "Lint of modified files in head:" | ||
echo ${{ env.HEAD_LINT }} | ||
echo "Lint of files added by head:" | ||
echo ${{ env.ADDED_LINT }} | ||
if: always() | ||
- name: Fail If Negative Delta | ||
run: exit 1 | ||
if: env.PASSING_SCORE == '-' |
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
Oops, something went wrong.