- changes Gemma 2/6-8 heater register from PV to SV #686
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: Mypy | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
workflow_dispatch: | |
inputs: | |
### Flags for mypy ### | |
mypy_flags: | |
description: 'mypy options (default: <none>)' | |
required: false | |
default: '' | |
tool_name: | |
description: 'Tool name to use for reviewdog reporter' | |
default: 'mypy' | |
ignore_note: | |
description: | | |
Ignore note entry. | |
mypy report some error with optional note entry. | |
This option is workaround. | |
default: 'false' | |
jobs: | |
mypy: | |
runs-on: ubuntu-latest | |
name: runner / mypy | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
cache: 'pip' # caching pip dependencies | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip==24.0 # downgrade pip as pip v24.1 fails with pip._vendor.packaging.version.InvalidVersion: Invalid version: '6.5.0-1022-azure' (image name!) | |
pip install --upgrade -r src/requirements-dev.txt | |
pip install -r src/requirements.txt | |
- uses: tsuyoshicho/action-mypy@v4 | |
with: | |
github_token: ${{ secrets.github_token }} | |
# Change reviewdog reporter if you need [github-pr-check,github-check,github-pr-review]. | |
reporter: github-check # github-pr-review # reporter: github-pr-check | |
# Change reporter level if you need. | |
# GitHub Status Check won't become failure with warning. | |
level: info # info, warning, error | |
# Change the current directory to run mypy command. | |
# mypy command reads setup.cfg or other settings file in this path. | |
workdir: src | |
reviewdog_flags: -filter-mode=file -fail-on-error | |
filter_mode: nofilter | |
fail_on_error: true |