Release 11/27/24 #4473
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: Test - mitosheet mypy | |
on: | |
push: | |
branches: [ dev ] | |
paths: | |
- 'mitosheet/**' | |
pull_request: | |
paths: | |
- 'mitosheet/**' | |
jobs: | |
test-mitosheet-mypy: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
python-version: [3.8] | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@0.7.0 | |
with: | |
access_token: ${{ github.token }} | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: pip | |
cache-dependency-path: mitosheet/setup.py | |
- name: Install dependencies | |
run: | | |
cd mitosheet | |
pip install -e ".[test]" | |
- name: Check types with MyPY | |
run: | | |
mypy mitosheet/mitosheet/ --ignore-missing-imports --disallow-untyped-calls --disallow-incomplete-defs --no-implicit-optional | |
mypy mitosheet/dev/ --ignore-missing-imports --disallow-untyped-calls --disallow-incomplete-defs --no-implicit-optional | |
mypy mitoinstaller/mitoinstaller/ --ignore-missing-imports --disallow-untyped-calls --disallow-incomplete-defs --no-implicit-optional | |
mypy deployment/bump_version.py deployment/deploy.py --ignore-missing-imports --disallow-untyped-calls --disallow-incomplete-defs --no-implicit-optional |