Skip to content

github: add mypy workflow #11

github: add mypy workflow

github: add mypy workflow #11

Workflow file for this run

name: "mypy check"
on: [pull_request]
jobs:
static-type-check:
runs-on: ubuntu-latest
allow-failure: true

Check failure on line 8 in .github/workflows/mypy.yml

View workflow run for this annotation

GitHub Actions / mypy check

Invalid workflow file

The workflow is not valid. .github/workflows/mypy.yml (Line: 8, Col: 5): Unexpected value 'allow-failure'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
with:
python-version: '3.x'
- run: pip install mypy
- name: Get Python changed files
id: changed-py-files
uses: tj-actions/changed-files@v23
with:
files: |
*.py
**/*.py
- name: Run if any of the listed files above is changed
if: steps.changed-py-files.outputs.any_changed == 'true'
run: mypy ${{ steps.changed-py-files.outputs.all_changed_files}} --install-types --non-interactive