Adapt to schema 230 (implicit CRS) #881
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linux | |
# Run on PR requests. And on master itself. | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
TestLinux: | |
name: Linux, Python ${{ matrix.python }} ${{ matrix.display_name }} | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
# 2021 | |
- python: 3.9 | |
pins: "sqlalchemy==1.4.44 alembic==1.8.* geoalchemy2==0.14.*" | |
display_name: "2021" | |
# 2022 | |
- python: "3.10" | |
pins: "sqlalchemy==1.4.44 alembic==1.8.* geoalchemy2==0.14.*" | |
display_name: "2022" | |
# 2023 NumPy 1 | |
- python: "3.11" | |
pins: "sqlalchemy==2.0.24 alembic==1.13.1 geoalchemy2==0.14.3 numpy==1.26.4" | |
display_name: "2023 NumPy 1" | |
# 2023 NumPy 2 | |
- python: "3.11" | |
pins: "sqlalchemy==2.0.24 alembic==1.13.1 geoalchemy2==0.14.3 numpy==2.0.1" | |
display_name: "2023 NumPy 2" | |
# 2024 with GDAL 3.6 | |
- python: "3.12" | |
pins: "sqlalchemy==2.0.24 alembic==1.13.1 geoalchemy2==0.14.3 numpy==1.26.4" | |
display_name: "2024 GDAL 3.6" | |
use_gdal_36: true | |
# current | |
- python: "3.13" | |
#pins: "sqlalchemy==2.0.* alembic==1.13.* geoalchemy2==0.14.*" | |
display_name: "2024" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- name: Set up Python ${{ matrix.python }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Add PPA | |
run: | | |
sudo add-apt-repository "ppa:ubuntugis/ppa" -y && sudo apt update | |
apt show libgdal-dev | grep Version | |
if: matrix.use_gdal_36 | |
- name: Install GDAL, sqlite3 and spatialite | |
run: | | |
sudo apt update | |
sudo apt install --yes --no-install-recommends sqlite3 libsqlite3-mod-spatialite libgdal-dev | |
- name: Install python dependencies | |
shell: bash | |
run: | | |
pip install --disable-pip-version-check --upgrade pip setuptools wheel | |
pip install ${{ matrix.pins }} .[test,rasterio] | |
pip install GDAL==$(gdal-config --version) --no-build-isolation # install gdal AFTER numpy | |
pip list | |
- name: Run tests | |
shell: bash | |
run: | | |
pytest |