-
Notifications
You must be signed in to change notification settings - Fork 205
87 lines (79 loc) · 2.39 KB
/
test_gdal_latest.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Test GDAL Latest
on:
push:
branches: [ main, 'maint-*' ]
schedule:
- cron: '0 0 * * 0'
pull_request: # also build on PRs touching this file
paths:
- ".github/workflows/test_gdal_latest.yml"
- "ci/gdal-compile.sh"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test_gdal_latest:
name: GDAL Latest
runs-on: ubuntu-latest
container: osgeo/proj:9.2.0
env:
GDAL_DIR: ${{ github.workspace }}/gdal_install
GDAL_DATA: ${{ github.workspace }}/gdal_install/share/gdal
LD_LIBRARY_PATH: "${{ github.workspace }}/gdal_install/lib/:${LD_LIBRARY_PATH}"
steps:
- uses: actions/checkout@v4
- name: Update
run: |
apt-get update
apt-get -y install software-properties-common
add-apt-repository -y ppa:deadsnakes/ppa
apt-get update
- name: Set up Python
run: |
apt-get install -y --no-install-recommends \
python3.10 \
python3.10-dev \
python3.10-venv \
python3-pip \
g++
- name: Install GDAL
shell: bash
run: |
apt-get update
apt-get install -qq \
libcurl4-gnutls-dev \
libgeos-dev \
libjpeg-dev \
libnetcdf-dev \
libhdf4-alt-dev \
libhdf5-serial-dev \
libssl-dev \
libsqlite3-dev \
libexpat-dev \
libxerces-c-dev \
libpng-dev \
libopenjp2-7-dev \
libzstd-dev \
libwebp-dev \
cmake \
curl \
git
bash ci/gdal-compile.sh git
- name: Install dependencies
run: |
export PATH="${GDAL_DIR}/bin/:${PATH}"
python3.10 -m venv testenv
. testenv/bin/activate
python -m pip install --upgrade pip
python -m pip wheel -r requirements-dev.txt
python -m pip install -r requirements-dev.txt
python setup.py clean
python -m pip install --no-deps --force-reinstall -e .[test]
- name: Test
shell: bash
run: |
export PATH="${GDAL_DIR}/bin/:${PATH}"
. testenv/bin/activate
python -m pytest -v -m "not wheel or gdal" -rxXs --cov fiona --cov-report term-missing