-
Notifications
You must be signed in to change notification settings - Fork 2
224 lines (222 loc) · 7 KB
/
CI.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
212
213
214
215
216
217
218
219
220
221
222
223
224
name: Testing
on:
schedule:
- cron: '0 0 * * 1,3,5'
push:
branches:
- main
pull_request:
jobs:
OccurrencesInterface:
name: "OccurrencesInterface"
runs-on: "ubuntu-latest"
continue-on-error: true
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v2
- name: "Bootstrap the package"
run: julia --project=./OccurrencesInterface OccurrencesInterface/bootstrap.jl
- uses: julia-actions/julia-buildpkg@latest
with:
project: OccurrencesInterface
- uses: julia-actions/julia-runtest@latest
with:
project: OccurrencesInterface
annotate: true
- uses: julia-actions/julia-processcoverage@v1
with:
directories: OccurrencesInterface/src
- run: mv lcov.info OccurrencesInterface-lcov.info
- uses: actions/upload-artifact@v3
with:
name: coverage
path: OccurrencesInterface-lcov.info
GBIF:
name: "GBIF"
runs-on: "ubuntu-latest"
needs: [OccurrencesInterface]
continue-on-error: true
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v2
- name: "Bootstrap the package"
run: julia --project=./GBIF GBIF/bootstrap.jl
- uses: julia-actions/julia-buildpkg@latest
with:
project: GBIF
- uses: julia-actions/julia-runtest@latest
with:
project: GBIF
annotate: true
- uses: julia-actions/julia-processcoverage@v1
with:
directories: GBIF/src
- run: mv lcov.info GBIF-lcov.info
- uses: actions/upload-artifact@v3
with:
name: coverage
path: GBIF-lcov.info
Phylopic:
name: "Phylopic"
runs-on: "ubuntu-latest"
continue-on-error: true
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v2
- name: "Bootstrap the package"
run: julia --project=./Phylopic Phylopic/bootstrap.jl
- uses: julia-actions/julia-buildpkg@latest
with:
project: Phylopic
- uses: julia-actions/julia-runtest@latest
with:
project: Phylopic
annotate: true
- uses: julia-actions/julia-processcoverage@v1
with:
directories: Phylopic/src
- run: mv lcov.info Phylopic-lcov.info
- uses: actions/upload-artifact@v3
with:
name: coverage
path: Phylopic-lcov.info
SimpleSDMLayers:
name: "SimpleSDMLayers"
runs-on: "ubuntu-latest"
continue-on-error: true
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v2
- name: "Bootstrap the package"
run: julia --project=./SimpleSDMLayers SimpleSDMLayers/bootstrap.jl
- uses: julia-actions/julia-buildpkg@latest
with:
project: SimpleSDMLayers
- uses: julia-actions/julia-runtest@latest
with:
project: SimpleSDMLayers
annotate: true
- uses: julia-actions/julia-processcoverage@v1
with:
directories: SimpleSDMLayers/src
- run: mv lcov.info SimpleSDMLayers-lcov.info
- uses: actions/upload-artifact@v3
with:
name: coverage
path: SimpleSDMLayers-lcov.info
SimpleSDMDatasets:
name: "SimpleSDMDatasets"
runs-on: "ubuntu-latest"
continue-on-error: true
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v2
- name: "Bootstrap the package"
run: julia --project=./SimpleSDMDatasets SimpleSDMDatasets/bootstrap.jl
- uses: julia-actions/julia-buildpkg@latest
with:
project: SimpleSDMDatasets
- uses: julia-actions/julia-runtest@latest
with:
project: SimpleSDMDatasets
annotate: true
- uses: julia-actions/julia-processcoverage@v1
with:
directories: SimpleSDMDatasets/src
- run: mv lcov.info SimpleSDMDatasets-lcov.info
- uses: actions/upload-artifact@v3
with:
name: coverage
path: SimpleSDMDatasets-lcov.info
Fauxcurrences:
name: "Fauxcurrences"
runs-on: "ubuntu-latest"
needs: [OccurrencesInterface, SimpleSDMLayers]
continue-on-error: true
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v2
- name: "Bootstrap the package"
run: julia --project=./Fauxcurrences Fauxcurrences/bootstrap.jl
- uses: julia-actions/julia-buildpkg@latest
with:
project: Fauxcurrences
- uses: julia-actions/julia-runtest@latest
with:
project: Fauxcurrences
annotate: true
- uses: julia-actions/julia-processcoverage@v1
with:
directories: Fauxcurrences/src
- run: mv lcov.info Fauxcurrences-lcov.info
- uses: actions/upload-artifact@v3
with:
name: coverage
path: Fauxcurrences-lcov.info
SDeMo:
name: "SDeMo"
runs-on: "ubuntu-latest"
continue-on-error: true
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v2
- name: "Bootstrap the package"
run: julia --project=./SDeMo SDeMo/bootstrap.jl
- uses: julia-actions/julia-buildpkg@latest
with:
project: SDeMo
- uses: julia-actions/julia-runtest@latest
with:
project: SDeMo
annotate: true
- uses: julia-actions/julia-processcoverage@v1
with:
directories: SDeMo/src
- run: mv lcov.info SpeciesDistributionToolkit-lcov.info
- uses: actions/upload-artifact@v3
with:
name: coverage
path: SpeciesDistributionToolkit-lcov.info
SpeciesDistributionToolkit:
needs: [GBIF, Fauxcurrences, SimpleSDMLayers, SimpleSDMDatasets, Phylopic, SDeMo, OccurrencesInterface]
name: "SpeciesDistributionToolkit"
runs-on: "ubuntu-latest"
continue-on-error: true
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v2
- name: "Bootstrap the package"
run: julia --project=. bootstrap.jl
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
with:
annotate: true
- uses: julia-actions/julia-processcoverage@v1
with:
directories: src
- run: mv lcov.info SpeciesDistributionToolkit-lcov.info
- uses: actions/upload-artifact@v3
with:
name: coverage
path: SpeciesDistributionToolkit-lcov.info
Codecoverage:
name: "Upload coverage"
needs: [SpeciesDistributionToolkit]
if: ${{ always() }}
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: coverage
path: ./codecov
- name: Check the coverage content
run: ls -lah ./codecov
- name: Concatenate
run: cat ./codecov/*.info >> ./lcov.info
- uses: codecov/codecov-action@v2
with:
file: ./lcov.info
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false