-
Notifications
You must be signed in to change notification settings - Fork 2
211 lines (167 loc) · 7.87 KB
/
coveralls.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
name: Coveralls
on:
push:
branches: [ master ]
pull_request:
# branches: [ master ]
jobs:
Caches:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: apt update
run: |
sudo apt-get update
- name: Install gdal
run: |
sudo add-apt-repository ppa:ubuntugis/ppa && sudo apt-get update
sudo apt-get install python3-gdal
- name: Install libgdal
run: |
sudo apt-get update && sudo apt-get install libgdal-dev
- name: pip install
run: |
pip install 'pip<23'
pip install numpy
pip install --global-option=build_ext --global-option="-I/usr/include/gdal" GDAL==`gdal-config --version`
- name: create cache RGB
run: |
python scripts/create_cache.py -R "regress/data/RGB/*.tif" -o ressources/RGF93_LA93_5cm.json -c cache_regress_RGB -g "regress/data/regress_graphe.gpkg" -t graphe -z 0 -r 1
- name: update cache RGB
run: |
python scripts/update_cache.py -R "regress/data/update/RGB/*.tif" -c cache_regress_RGB -g "regress/data/regress_graphe.gpkg" -t graphe -z 0 -r 1
- name: create cache RGB no mtd
run: |
python scripts/create_cache.py -R "regress/data/RGB/*.tif" -o ressources/RGF93_LA93_5cm.json -c cache_regress_RGB_no_mtd -g "regress/data/regress_graphe_nomtd.gpkg" -t graphe -z 1 -r 1
- name: update cache RGB no mtd
run: |
python scripts/update_cache.py -R "regress/data/update/RGB/*.tif" -c cache_regress_RGB_no_mtd -g "regress/data/regress_graphe_nomtd.gpkg" -t graphe -z 1 -r 1
- name: create cache RGBIR
run: |
python scripts/create_cache.py -R "regress/data/RGB/*.tif" -I "regress/data/IR/*.tif" -o ressources/RGF93_LA93_5cm.json -c cache_regress_RGBIR -g "regress/data/regress_graphe.gpkg" -t graphe -z 0 -r 1
- name: update cache RGBIR
run: |
python scripts/update_cache.py -R "regress/data/update/RGB/*.tif" -I "regress/data/update/IR/*.tif" -c cache_regress_RGBIR -g "regress/data/regress_graphe.gpkg" -t graphe -z 0 -r 1
- name: create cache RGBIR no mtd
run: |
python scripts/create_cache.py -R "regress/data/RGB/*.tif" -I "regress/data/IR/*.tif" -o ressources/RGF93_LA93_5cm.json -c cache_regress_RGBIR_no_mtd -g "regress/data/regress_graphe_nomtd.gpkg" -t graphe -z 1 -r 1
- name: update cache RGBIR no mtd
run: |
python scripts/update_cache.py -R "regress/data/update/RGB/*.tif" -I "regress/data/update/IR/*.tif" -c cache_regress_RGBIR_no_mtd -g "regress/data/regress_graphe_nomtd.gpkg" -t graphe -z 1 -r 1
- name: create cache IR
run: |
python scripts/create_cache.py -I "regress/data/IR/*.tif" -o ressources/RGF93_LA93_5cm.json -c cache_regress_IR -g "regress/data/regress_graphe.gpkg" -t graphe -z 0 -r 1
- name: update cache IR
run: |
python scripts/update_cache.py -I "regress/data/update/IR/*.tif" -c cache_regress_IR -g "regress/data/regress_graphe.gpkg" -t graphe -z 0 -r 1
- name: create cache IR no mtd
run: |
python scripts/create_cache.py -I "regress/data/IR/*.tif" -o ressources/RGF93_LA93_5cm.json -c cache_regress_IR_no_mtd -g "regress/data/regress_graphe_nomtd.gpkg" -t graphe -z 1 -r 1
- name: update cache IR no mtd
run: |
python scripts/update_cache.py -I "regress/data/update/IR/*.tif" -c cache_regress_IR_no_mtd -g "regress/data/regress_graphe_nomtd.gpkg" -t graphe -z 1 -r 1
- name: create cache RGB gpao
run: |
python scripts/create_cache.py -R "regress/data/RGB/*.tif" -o ressources/RGF93_LA93_5cm.json -c cache_regress_RGB_gpao -g "regress/data/regress_graphe.gpkg" -t graphe
- name: create cache RGB gpao no mtd
run: |
python scripts/create_cache.py -R "regress/data/RGB/*.tif" -o ressources/RGF93_LA93_5cm.json -c cache_regress_RGB_gpao_no_mtd -g "regress/data/regress_graphe_nomtd.gpkg" -t graphe -z 1
- name: create cache RGBIR gpao
run: |
python scripts/create_cache.py -R "regress/data/RGB/*.tif" -I "regress/data/IR/*.tif" -o ressources/RGF93_LA93_5cm.json -c cache_regress_RGBIR_gpao -g "regress/data/regress_graphe.gpkg" -t graphe
- name: create cache RGBIR gpao no mtd
run: |
python scripts/create_cache.py -R "regress/data/RGB/*.tif" -I "regress/data/IR/*.tif" -o ressources/RGF93_LA93_5cm.json -c cache_regress_RGBIR_gpao_no_mtd -g "regress/data/regress_graphe_nomtd.gpkg" -t graphe -z 1
- name: create cache IR gpao
run: |
python scripts/create_cache.py -I "regress/data/IR/*.tif" -o ressources/RGF93_LA93_5cm.json -c cache_regress_IR_gpao -g "regress/data/regress_graphe.gpkg" -t graphe
- name: create cache IR gpao no mtd
run: |
python scripts/create_cache.py -I "regress/data/IR/*.tif" -o ressources/RGF93_LA93_5cm.json -c cache_regress_IR_gpao_no_mtd -g "regress/data/regress_graphe_nomtd.gpkg" -t graphe -z 1
- name: check cache RGB
run: |
python scripts/check_cache.py -r "cache_test/cache_test_RGB" -s cache_regress_RGB
- name: check cache RGB no mtd
run: |
python scripts/check_cache.py -r "cache_test/cache_test_RGB_no_mtd" -s cache_regress_RGB_no_mtd
- name: check cache RGBIR
run: |
python scripts/check_cache.py -r "cache_test/cache_test_RGBIR" -s cache_regress_RGBIR
- name: check cache RGBIR no mtd
run: |
python scripts/check_cache.py -r "cache_test/cache_test_RGBIR_no_mtd" -s cache_regress_RGBIR_no_mtd
- name: check cache IR
run: |
python scripts/check_cache.py -r "cache_test/cache_test_IR" -s cache_regress_IR
- name: check cache IR no mtd
run: |
python scripts/check_cache.py -r "cache_test/cache_test_IR_no_mtd" -s cache_regress_IR_no_mtd
- name: check cache RGB gpao
run: |
python scripts/check_cache.py -r "cache_test/cache_test_RGB_gpao" -s cache_regress_RGB_gpao
- name: check cache RGB gpao no mtd
run: |
python scripts/check_cache.py -r "cache_test/cache_test_RGB_gpao_no_mtd" -s cache_regress_RGB_gpao_no_mtd
- name: check cache RGBIR gpao
run: |
python scripts/check_cache.py -r "cache_test/cache_test_RGBIR_gpao" -s cache_regress_RGBIR_gpao
- name: check cache RGBIR gpao no mtd
run: |
python scripts/check_cache.py -r "cache_test/cache_test_RGBIR_gpao_no_mtd" -s cache_regress_RGBIR_gpao_no_mtd
- name: check cache IR gpao
run: |
python scripts/check_cache.py -r "cache_test/cache_test_IR_gpao" -s cache_regress_IR_gpao
- name: check cache IR gpao no mtd
run: |
python scripts/check_cache.py -r "cache_test/cache_test_IR_gpao_no_mtd" -s cache_regress_IR_gpao_no_mtd
API:
runs-on: ubuntu-latest
services:
postgres:
image: postgis/postgis
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '14'
- name: initialize DB
env:
PGHOST: localhost
PGPORT: 5432
PGUSER: postgres
PGPASSWORD: postgres
run: |
psql -c "CREATE DATABASE packo"
psql -d packo -f sql/packo.sql
- name: install
run: npm install
- name: API run test
env:
PGHOST: localhost
PGPORT: 5432
PGUSER: postgres
PGPASSWORD: postgres
PGDATABASE: packo
DEBUG:
run: |
npm run coveralls-api
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage/lcov.info