Skip to content

Commit

Permalink
Add tests for gdal 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
margrietpalm committed Feb 16, 2024
1 parent ce4346a commit 353c603
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/test_gdal36
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 353c603

Please sign in to comment.