From 0959a4202424eb2053eda81f4845b74f27b0e835 Mon Sep 17 00:00:00 2001 From: Margriet Palm Date: Fri, 16 Feb 2024 12:12:28 +0100 Subject: [PATCH] Add gdal36 test to test.yml --- .github/workflows/test.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c05306a6..230aaa6a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,6 +22,7 @@ jobs: display_name: "2019" pins: "h5py==2.10.* sqlalchemy==1.4.10 shapely==2.0.* pyproj==3.0.*" extras: "[test,gridadmin]" + ppa: "" # 2020 - python: 3.9 os: ubuntu-20.04 @@ -29,6 +30,7 @@ jobs: display_name: "2020" pins: "h5py==3.1.* sqlalchemy==1.4.20 shapely==2.0.* pyproj==3.0.*" extras: "[test,gridadmin]" + ppa: "" # 2021 - python: 3.9 os: ubuntu-20.04 @@ -36,6 +38,7 @@ jobs: display_name: "2021" pins: "h5py==3.3.* sqlalchemy==1.4.30 shapely==2.0.* pyproj==3.2.*" extras: "[test,gridadmin]" + ppa: "" # 2022 - python: '3.10' os: ubuntu-22.04 @@ -43,6 +46,7 @@ jobs: display_name: "2022" pins: "h5py==3.7.* sqlalchemy==1.4.40 shapely==2.0.* pyproj==3.4.*" extras: "[test,gridadmin]" + ppa: "" # 2023 - python: '3.11' os: ubuntu-22.04 @@ -50,6 +54,7 @@ jobs: pins: "h5py==3.10.* sqlalchemy==2.0.* shapely==2.0.* pyproj==3.6.*" display_name: "2023" extras: "[test,gridadmin]" + ppa: "" # current (still using 3.11 because 3.12 breaks; see issue 348) - python: '3.11' os: ubuntu-latest @@ -57,6 +62,15 @@ jobs: pins: "" display_name: "latest" extras: "[test,gridadmin]" + ppa: "" + - python: '3.11' + os: ubuntu-latest + numpy: numpy==1.24.* + pins: "" + display_name: "GDAL36" + extras: "[test,gridadmin]" + ppa: "ppa:ubuntugis/ppa" + steps: - uses: actions/checkout@v3 @@ -68,6 +82,12 @@ jobs: with: python-version: ${{ matrix.python }} + - name: Add PPA + run: | + sudo add-apt-repository ${{ matrix.ppa }} -y && sudo apt update + apt show libgdal-dev | grep Version + if: matrix.ppa != "" + - name: Install GDAL, sqlite3 and spatialite run: | sudo apt-get update && sudo apt-get install --yes --no-install-recommends libgdal-dev sqlite3 libsqlite3-mod-spatialite