From 353c6034be1741d39110dec907216b77eae31dd8 Mon Sep 17 00:00:00 2001 From: Margriet Palm Date: Fri, 16 Feb 2024 11:21:22 +0100 Subject: [PATCH] Add tests for gdal 3.6 --- .github/workflows/test_gdal36 | 54 +++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/test_gdal36 diff --git a/.github/workflows/test_gdal36 b/.github/workflows/test_gdal36 new file mode 100644 index 00000000..22be7172 --- /dev/null +++ b/.github/workflows/test_gdal36 @@ -0,0 +1,54 @@ +name: Linux + +# Run on PR requests. And on master itself. +on: + push: + branches: + - master + pull_request: + +jobs: + TestGDAL: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + with: + lfs: true + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.11 + - name: Add PPA + run: | + sudo add-apt-repository ppa:ubuntugis/ppa -y && sudo apt update + apt show libgdal-dev | grep Version + + - 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 + echo $(gdal-config --version) + + - uses: actions/cache@v3 + with: + path: ~/.cache/pip + key: ubuntu-22.04-pip-3.11-numpy==1.24.*-${{ hashFiles('setup.py') }} + restore-keys: | + ubuntu-22.04-pip-3.11-numpy==1.24.*- + + - name: Install python dependencies + shell: bash + run: | + pip install --disable-pip-version-check --upgrade pip setuptools==63.* wheel scikit-build + pip install numpy==1.24.* + pip install -e .[test,gridadmin] --no-build-isolation ${{ matrix.pins }} "pygdal==$(gdal-config --version).*" + pip list + + - name: Run unittests + shell: bash + run: | + pytest + + - name: Run integration tests + shell: bash + run: | + pytest integration_tests