diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index c0dbb4a..eec0585 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -1,24 +1,16 @@ -name: Pylint - -on: [push] - +name: reviewdog +on: [pull_request] jobs: - build: - + linter_name: + name: runner / black formatter runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.9 - uses: actions/setup-python@v2 - with: - python-version: 3.9 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pylint - - name: Analysing the code with pylint - continue-on-error: true - run: | - pylint `find . -type d -name migrations -prune -o -name '*.py'| grep -v __ |xargs` - + - uses: actions/checkout@v2 + - uses: reviewdog/action-black@v2 + with: + github_token: ${{ secrets.github_token }} + # Change reviewdog reporter if you need [github-pr-check, github-check]. + reporter: github-pr-check + # Change reporter level if you need. + # GitHub Status Check won't become failure with a warning. + level: warning