diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7706173..a3bc5c1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -89,3 +89,24 @@ jobs: python-version: ${{ env.LATEST_PY_VERSION }} - name: Run style checks & linting uses: pre-commit/action@v2.0.3 + + # TODO: This section could be removed if the issues with the mypy pre-commit hook were resolved + - uses: snok/install-poetry@v1.1.7 + with: + version: 1.2.0a2 + virtualenvs-in-project: true + - name: Cache python packages + id: cache + uses: actions/cache@v2 + with: + path: .venv + key: venv-${{ matrix.python-version }}-latest-${{ hashFiles('poetry.lock') }} + - name: Install dependencies + if: steps.cache.outputs.cache-hit != 'true' + run: poetry install -v -E all + - name: Run type checking + run: > + poetry run mypy + --install-types --non-interactive + --ignore-missing-imports + requests_cache |