Skip to content

Introduce workflow run crate #351

Introduce workflow run crate

Introduce workflow run crate #351

Workflow file for this run

name: mypy
on:
push:
branches:
- main
paths:
- "sapporo/**"
- "tests/**"
- "setup.py"
workflow_dispatch: {}
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
mypy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-python@v4
with:
python-version: 3.8
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
- name: Install dependencies
run: |
python3 -m pip install --no-cache-dir --progress-bar off -U pip setuptools wheel
python3 -m pip install --no-cache-dir --progress-bar off -U .[tests]
- name: Check with mypy
run: |
bash ./tests/lint_and_style_check/mypy.sh