Mypy Check #821
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 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 }} |