Skip to content

Commit

Permalink
Add gdal36 test to test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
margrietpalm committed Feb 16, 2024
1 parent 8f8e95e commit 0959a42
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,41 +22,55 @@ 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
numpy: numpy==1.19.*
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
numpy: numpy==1.21.*
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
numpy: numpy==1.23.*
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
numpy: numpy==1.24.*
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
numpy: numpy==1.24.*
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
Expand All @@ -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
Expand Down

0 comments on commit 0959a42

Please sign in to comment.