99 runs-on : ${{ matrix.os }}
1010 strategy :
1111 matrix :
12- os : [ubuntu-24.04, ubuntu-22.04, ubuntu-20.04 ] # no ubuntugis @ ubuntu-24.04
12+ os : [ubuntu-24.04, ubuntu-22.04] # no ubuntugis @ ubuntu-24.04
1313 python-version : ['3.11', '3.10', '3.9', '3.8']
14- gdal-version : ['3.8', '3.6', '3.4']
1514 exclude :
1615 - os : ubuntu-24.04
1716 python-version : ' 3.9'
18- - os : ubuntu-24.04
19- gdal-version : ' 3.6'
20- - os : ubuntu-24.04
21- gdal-version : ' 3.4'
22- - os : ubuntu-22.04
23- gdal-version : ' 3.4'
24- - os : ubuntu-22.04
25- gdal-version : ' 3.8'
26- - os : ubuntu-20.04
27- python-version : ' 3.11'
28- - os : ubuntu-20.04
29- gdal-version : ' 3.6'
30- - os : ubuntu-20.04
31- gdal-version : ' 3.8'
3217 steps :
3318 - name : Checkout 🛎️
3419 uses : actions/checkout@v3
@@ -39,22 +24,13 @@ jobs:
3924 - name : install gdal
4025 id : gdal
4126 run : |
42- if [ "${{ matrix.os }}" = "ubuntu-20.04" ]
43- then
44- echo adding ubuntugis unstable
45- sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable
46- else
47- echo adding ubuntugis stable
48- sudo apt-add-repository ppa:ubuntugis/ppa
49- fi
5027 sudo apt-get update || true # ignore erros becouse we can not install gdal from `ppa:ubuntugis/ppa` without apt errors
5128 echo available python3-gdal versions: $(apt-cache madison python3-gdal | cut -f2 -d "|" | tr -d " ")
5229 echo available libgdal-dev versions: $(apt-cache madison libgdal-dev | cut -f2 -d "|" | tr -d " ")
53- export APT_GDAL_VERSION=$(apt-cache madison python3-gdal | grep ${{ matrix.gdal-version }} | head -n1 | cut -f2 -d "|" | tr -d " ")
30+ export APT_GDAL_VERSION=$(apt-cache madison python3-gdal | head -n1 | cut -f2 -d "|" | tr -d " ")
5431 echo "using version ->${APT_GDAL_VERSION}<-"
55- apt-cache madison libgdal30 | grep "${APT_GDAL_VERSION}" && sudo apt-get install libgdal30="${APT_GDAL_VERSION}"
56- sudo apt-get install python3-gdal="${APT_GDAL_VERSION}" libgdal-dev="${APT_GDAL_VERSION}"
5732 echo gdal_version=$(echo "${APT_GDAL_VERSION}" | cut -f1 -d '+') >> $GITHUB_OUTPUT
33+ sudo apt-get install python3-gdal libgdal-dev
5834 - name : Install dependencies for test
5935 run : |
6036 python -m pip install --upgrade pip wheel
6339 - name : Install dependencies from config
6440 run : |
6541 # we need to pin GDAL here to match the python3-gdal
66- pip install GDAL==${{steps.gdal.outputs.gdal_version}}
42+ pip3 install GDAL==${{steps.gdal.outputs.gdal_version}}
6743 pip3 install --no-cache-dir .[test]
6844 - name : Test with pytest
6945 run : |
0 commit comments