diff --git a/.github/workflows/mypy-action.yml b/.github/workflows/mypy-action.yml index 52e9de65b..16415db8a 100644 --- a/.github/workflows/mypy-action.yml +++ b/.github/workflows/mypy-action.yml @@ -1,26 +1,19 @@ -name: Mypi action - +name: reviewdog on: [pull_request] -# on: - # push: - # paths: - # - '*.py' - jobs: mypy: + name: runner / mypy runs-on: ubuntu-latest steps: - - name: Setup Python - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: tsuyoshicho/action-mypy@v4 with: - python-version: 3.x - - name: Checkout - uses: actions/checkout@v3 - - name: Install mypy - run: pip install mypy - - name: Run mypy - uses: sasanquaneuf/mypy-github-action@releases/v1 - with: - checkName: 'mypy' # NOTE: this needs to be the same as the job name - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.github_token }} + # Change reviewdog reporter if you need [github-pr-check,github-check,github-pr-review]. + reporter: github-pr-review + # Change reporter level if you need. + # GitHub Status Check won't become failure with warning. + level: warning + # Change the current directory to run mypy command. + # mypy command reads setup.cfg or other settings file in this path. + workdir: .