Skip to content

Commit

Permalink
Change PPA step so it, hopefully, only runs for gdal36 test
Browse files Browse the repository at this point in the history
  • Loading branch information
margrietpalm committed Feb 16, 2024
1 parent 5d1e04e commit e6c8da2
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,54 +22,47 @@ 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:
Expand All @@ -84,9 +77,9 @@ jobs:

- name: Add PPA
run: |
sudo add-apt-repository ${{ matrix.ppa }} -y && sudo apt update
sudo add-apt-repository "ppa:ubuntugis/ppa" -y && sudo apt update
apt show libgdal-dev | grep Version
if: matrix.ppa != '""'
if: matrix.display_name == "GDAL36"

- name: Install GDAL, sqlite3 and spatialite
run: |
Expand Down

0 comments on commit e6c8da2

Please sign in to comment.