2021-07-12 18:28:35 +00:00
|
|
|
name: "Check code"
|
|
|
|
|
|
|
|
on: # Trigger the workflow on push or pull request, but only for the master branch
|
|
|
|
push:
|
|
|
|
branches: [master, "release/*"]
|
|
|
|
pull_request:
|
|
|
|
branches: [master, "release/*"]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
python-typing-mypy:
|
|
|
|
name: Python typing Mypy
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
- uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: 3.8
|
|
|
|
- name: Install mypy
|
|
|
|
run: |
|
2021-07-13 06:23:36 +00:00
|
|
|
grep mypy requirements/test.txt | xargs -0 pip install
|
2021-07-12 18:28:35 +00:00
|
|
|
pip list
|
|
|
|
- run: mypy
|