-
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.
Merge pull request #8 from mundialis/add_post_pr_review
add post PR review
- Loading branch information
Showing
2 changed files
with
24 additions
and
36 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,25 +1,15 @@ | ||
name: Python Flake8, black and pylint code quality check | ||
name: Python flake8, black, pylint and ruff code quality check and post PR code suggestions | ||
|
||
on: [push] | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint: | ||
# TODO: change branch of workflow repo (2x) | ||
uses: mundialis/github-workflows/.github/workflows/linting.yml@main | ||
with: | ||
VALIDATE_HTML: false | ||
ruff: | ||
name: ruff | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install apt dependencies | ||
run: | | ||
sudo apt-get install -y -qq python3 python3-pip | ||
- name: Install pip dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip3 install ruff==0.5.7 | ||
ruff --version | ||
- name: Lint with ruff | ||
run: | | ||
ruff check --config pyproject.toml . | ||
|
||
post-pr-reviews: | ||
needs: lint | ||
if: ${{ needs.lint.result == 'failure' }} | ||
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