Skip to content

Mypy Check

Mypy Check #814

Workflow file for this run

name: Mypy Check
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
# * is a special character in YAML so you have to quote this string
# at 4 am
- cron: '0 4 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
checks:
env:
src: "mltb2"
other_src: "tests"
runs-on: ubuntu-latest
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v3
# https://github.com/actions/setup-python
- uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Install
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry install --all-extras --without doc
- name: Check with mypy
run: |
mkdir .mypy_cache
poetry run mypy --install-types --non-interactive ${{ env.src }} ${{ env.other_src }}