chore: specify mypyc group_name #414
Workflow file for this run
This file contains hidden or 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: | |
| paths: | |
| - '**.py' | |
| - '.github/workflows/mypy.yaml' | |
| - 'pyproject.toml' | |
| - 'poetry.lock' | |
| - 'setup.py' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| mypy: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ ubuntu-latest, macos-latest, windows-latest ] | |
| pyversion: [ "3.10", "3.11", "3.12", "3.13" ] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Setup Python (faster than using Python container) | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.pyversion }} | |
| - name: Load cached Poetry installation | |
| id: cached-poetry | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.local # the path depends on the OS | |
| key: poetry-${{ runner.os }}-${{ matrix.pyversion }}-0 # increment to reset cache | |
| - name: Install Poetry (Python3.8) | |
| if: steps.cached-poetry.outputs.cache-hit != 'true' && matrix.pyversion == '3.8' | |
| uses: snok/install-poetry@v1 | |
| with: | |
| version: "1.8.5" | |
| - name: Install Poetry | |
| if: steps.cached-poetry.outputs.cache-hit != 'true' && matrix.pyversion != '3.8' | |
| uses: snok/install-poetry@v1 | |
| - name: Install Dependencies | |
| shell: bash | |
| run: poetry install --no-interaction | |
| - name: Run MyPy | |
| shell: bash | |
| run: make mypy |