From 4534aaaf92e92a710ae9f07d29c6dccd89d60086 Mon Sep 17 00:00:00 2001 From: elisalle Date: Thu, 2 Jan 2025 15:20:35 +0100 Subject: [PATCH] install gdal python bindings in test workflow --- .github/workflows/test.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0e4b27d..bc5c67d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -44,16 +44,11 @@ jobs: with: python-version: ${{ matrix.python }} - - name: Install sqlite3 and spatialite + - name: Install GDAL, sqlite3 and spatialite run: | sudo apt update - sudo apt install --yes --no-install-recommends sqlite3 libsqlite3-mod-spatialite + sudo apt install --yes --no-install-recommends sqlite3 libsqlite3-mod-spatialite libgdal-dev gdal-bin sqlite3 --version - - - name: Install gdal (for ogr2ogr) - run: | - sudo apt update - sudo apt install --yes --no-install-recommends gdal-bin ogr2ogr --version - name: Install python dependencies @@ -61,6 +56,7 @@ jobs: run: | pip install --disable-pip-version-check --upgrade pip setuptools wheel pip install ${{ matrix.pins }} .[test,cli] + pip install GDAL==$(gdal-config --version) pip list - name: Run tests