-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (47 loc) · 1.48 KB
/
test_gdal36.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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