Browse Source

Add MyPy action.

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.8.2
KmolYuan 5 years ago
parent
commit
0c63ee74fb
1 changed files with 19 additions and 0 deletions
  1. +19
    -0
      .github/workflows/mypy.yml

+ 19
- 0
.github/workflows/mypy.yml View File

@@ -0,0 +1,19 @@
name: Python type check
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Download submodules
run: git submodule update --init --recursive
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mypy
- name: Lint with mypy
run: mypy -m lark || true

Loading…
Cancel
Save