-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed workflow structure and modified ruff config
- Loading branch information
Showing
3 changed files
with
17 additions
and
59 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 |
---|---|---|
@@ -1,17 +1,11 @@ | ||
name: Python flake8, black, pylint and ruff code quality check and post PR code suggestions | ||
name: Linting and code quality check | ||
|
||
on: [push, pull_request] | ||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
lint: | ||
# LINE FOR TEST | ||
# TODO: change branch of workflow repo (2x) | ||
uses: mundialis/github-workflows/.github/workflows/linting.yml@test_post_pr_reviews | ||
uses: mundialis/github-workflows/.github/workflows/linting.yml@main | ||
with: | ||
VALIDATE_HTML: false | ||
|
||
post-pr-reviews: | ||
needs: lint | ||
# if: ${{ needs.lint.result == 'failure' }} | ||
if: failure() | ||
uses: mundialis/github-workflows/.github/workflows/post-pr-reviews.yml@test_post_pr_reviews |
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,11 @@ | ||
name: Post PR code suggestions | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Linting and code quality check"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
post-pr-reviews: | ||
uses: mundialis/github-workflows/.github/workflows/post-pr-reviews.yml@main |
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