fix: name error #167
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
name: MyPy | |
on: pull_request | |
jobs: | |
mypy: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, macos-latest, windows-latest ] | |
pyversion: [ "3.8", "3.9", "3.10", "3.11", "3.12" ] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup Python (faster than using Python container) | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.pyversion }} | |
- name: Install MyPy | |
run: | | |
python -m pip install --upgrade pip | |
pip install mypy | |
- name: Install pyyaml on python <= 3.9 | |
if: ${{ matrix.pyversion == '3.8' || matrix.pyversion == '3.9' }} | |
run: | | |
pip install wheel | |
pip install --no-build-isolation "Cython<3" "pyyaml==5.4.1" | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Run MyPy | |
run: mypy . --strict --pretty --show-error-codes --show-error-context --install-types --non-interactive |