Update README.md #2
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
# This file was generated from bswck/skeleton@bf2dfcf. | |
# Instead of changing this particular file, you might want to alter the template: | |
# https://github.com/bswck/skeleton/tree/bf2dfcf/project/.github/workflows/mypy.yml.jinja | |
name: "Mypy" | |
on: ["push"] | |
jobs: | |
typecheck: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: "actions/checkout@v4" | |
- name: "Install Poetry" | |
run: "pipx install poetry" | |
- name: "Set up Python 3.8" | |
uses: "actions/setup-python@v5" | |
with: | |
cache: "poetry" | |
- name: "Install the project" | |
run: "poetry install" | |
- name: "Type-check with mypy" | |
run: > | |
poetry run mypy . --strict | |
|| (echo yes | poetry run mypy --install-types && poetry run mypy . --strict) |