summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook@pioneer.com>2021-08-10 16:56:13 -0500
committerJordan Cook <jordan.cook@pioneer.com>2021-08-14 21:58:01 -0500
commitcda90d62c7019307ac28059d7936252e71ddf5b0 (patch)
tree045597ec459f12b1e64c285fa0bc47de97632c12 /.github
parent85ccdfd12928964e2861768ce70301232f50c769 (diff)
downloadrequests-cache-cda90d62c7019307ac28059d7936252e71ddf5b0.tar.gz
Disable misbehaving mypy pre-commit hook and go back to plain poetry install + run for CI
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml21
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