Update on_pull_request.yml #23
Workflow file for this run
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
name: on_pull_request | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
reviewdog: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Build Tools | |
run: | | |
mkdir -p $HOME/bin | |
curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b $HOME/bin | |
echo $HOME/bin >> $GITHUB_PATH | |
curl -sSL https://install.python-poetry.org | python | |
echo $HOME/.poetry/bin >> $GITHUB_PATH | |
- uses: actions/[email protected] | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.7" | |
- name: Install Python Requirements | |
run: | | |
poetry install | |
- name: Run reviewdog | |
env: | |
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
poetry run pylint -j 0 --ignore=vendor recline | reviewdog -reporter=github-pr-check -diff="git diff main" -efm="%f:%l:%c: %m" |