Bump mypy from 1.10.0 to 1.10.1 #489
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: Code Quality Checks | |
on: | |
push: | |
branches-ignore: | |
- "main" | |
jobs: | |
code-quality: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.9 | |
- name: Set up Poetry | |
uses: Gr1N/setup-poetry@v8 | |
- name: Restoring cache | |
id: cache | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pypoetry/virtualenvs | |
key: ${{ runner.os }}-poetry-${{ hashFiles('pyproject.toml') }} | |
- name: Install Dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: poetry install | |
- name: Check style with flake8 | |
run: poetry run flake8 tests src | |
- name: Check format with black | |
run: poetry run black --check tests src | |
- name: Check type hinting with mypy | |
run: poetry run mypy tests src | |
- name: Unit & Coverage test | |
run: poetry run tox |