diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index 10c6f30..ac54374 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -42,13 +42,23 @@ jobs: with: python-version: "3.8" - - name: Install dependencies 🔧 + - name: Install dependencies (Linux) 🔧 + if: ${{ matrix.os == 'ubuntu-20.04' && steps.changes.outputs.code == 'true' }} run: | python -VV python -m site python -m pip install --upgrade pip setuptools wheel python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0 + - name: Install dependencies (Windows) 🔧 + if: ${{ matrix.os != 'ubuntu-20.04' && steps.changes.outputs.code == 'true' }} + run: | + python -VV + python -m site + python -m pip install --upgrade pip setuptools wheel + python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0 + choco install mingw -y + - name: "Run mypy" if: steps.changes.outputs.code == 'true' run: "python -m tox -e mypy -s false"