This repository has been archived by the owner on Oct 18, 2024. It is now read-only.
[pre-commit.ci] pre-commit autoupdate #172
Workflow file for this run
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 skeleton-ci/[email protected]. | |
# Instead of changing this particular file, you might want to alter the template: | |
# https://github.com/skeleton-ci/skeleton-python/tree/0.0.2rc-215-g792492f/project/.github/workflows/mypy.yml.jinja | |
# IMPORTANT! | |
# Pinned versions of actions and Poetry are managed in a different repository. | |
# Do not submit PRs to this file unless for this repo specifically. | |
# To change this workflow globally, submit a PR to https://github.com/skeleton-ci/skeleton-python. | |
name: "Mypy" | |
on: ["push"] | |
jobs: | |
typecheck: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: "actions/checkout@v4" | |
- name: "Install Poetry" | |
run: "pipx install poetry==1.8.2" | |
- 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) |