From fb755a3859baf3a07f57938da2259b5c3fb74575 Mon Sep 17 00:00:00 2001 From: Fabian Schindler Date: Thu, 25 Nov 2021 17:40:31 +0100 Subject: [PATCH] fix: Improving structure of CI for type checking --- .github/workflows/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bade145..8bd8ebc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,7 +14,7 @@ jobs: name: Setup Python ${{ matrix.python-version }} with: python-version: ${{ matrix.python-version }} - - name: Install requirements 📦 + - name: Install requirements run: | sudo apt-get update sudo apt-get install -y binutils libproj-dev gdal-bin libgdal-dev libsqlite3-mod-spatialite spatialite-bin @@ -22,9 +22,12 @@ jobs: pip install -r requirements-dev.txt pip install pygdal=="`gdal-config --version`.*" pip install . - - name: Run unit tests ⚙️ + mypy --install-types pygeofilter + - name: Run unit tests run: | pytest flake8 pygeofilter tests + - name: Run type checking + run: | mypy pygeofilter