@@ -24,24 +24,14 @@ jobs:
2424 python-version : ${{ matrix.python-version }}
2525 - name : Install dependencies
2626 run : |
27- set -e
28- python -m pip install --upgrade pip
29- python -m pip install pytest wheel numpy
30-
31- sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
27+ pip install pytest wheel numpy
28+ sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
3229 sudo apt-get update
33- sudo apt-get install -y gdal-bin libgdal-dev python3-gdal libspatialindex-dev
34-
35- export CFLAGS="$(gdal-config --cflags)"
36- export LDFLAGS="$(gdal-config --libs)"
37- export CPATH="$(gdal-config --cflags | sed 's/-I//g' | awk '{print $1}'):$CPATH" || true
38- export CPLUS_INCLUDE_PATH="$(gdal-config --cflags | sed 's/-I//g' | awk '{print $1}'):$CPLUS_INCLUDE_PATH" || true
39-
40- python -m pip install "GDAL==$(gdal-config --version)" || \
41- python -m pip install --no-binary GDAL "GDAL==$(gdal-config --version)"
42-
43- # Install repo requirements
44- if [ -f requirements.txt ]; then python -m pip install -r requirements.txt; fi
30+ sudo apt-get install gdal-bin python3-gdal
31+ sudo apt-get install libgdal-dev
32+ pip install GDAL==$(gdal-config --version) --global-option=build_ext --global-option="-I/usr/include/gdal"
33+ sudo apt-get install libspatialindex-dev
34+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
4535 - name : Integration tests with pytest
4636 run : |
4737 pytest -v ./tests/test_integration.py --html=mobility-catalogs-integration-tests-report.html --self-contained-html
0 commit comments