-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
20 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,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: . |