-
-
Notifications
You must be signed in to change notification settings - Fork 2
286 lines (209 loc) · 10.9 KB
/
stack.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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
name: stack
on:
push:
branches: [main, ci-stack]
pull_request:
branches: [main]
jobs:
build:
name: ghc ${{ matrix.ghc }}
runs-on: ubuntu-latest
strategy:
matrix:
cabal: ["3.0"]
ghc:
- "8.2.2"
steps:
- uses: mstksg/get-package@v1
name: Install OS Packages
with:
apt-get: libgmp-dev
- uses: actions/checkout@v2
with:
submodules: true
- uses: haskell/actions/setup@v1
name: Setup stack and cabal-install
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
enable-stack: true
- name: Cache Key
id: cache_key
run: echo ::set-output name=key::$(md5sum lang-haskell/stack.yaml | awk '{print $1}')
- uses: actions/cache@v1
name: Cache ~/.stack
id: cache
with:
path: ~/.stack
key: ${{ matrix.os }}-${{ steps.cache_key.outputs.key }}
# - name: build tests
# run: stack test --no-run-tests --no-terminal
- name: flight-clip:hlint
run: stack test flight-clip:hlint --no-terminal --test-arguments "--color=always"
- name: flight-clip:doctest
run: stack test flight-clip:doctest --no-terminal --test-arguments "--color=always"
- name: flight-cmd:hlint
run: stack test flight-cmd:hlint --no-terminal --test-arguments "--color=always"
- name: flight-comp:hlint
run: stack test flight-comp:hlint --no-terminal --test-arguments "--color=always"
- name: flight-comp:doctest
run: stack test flight-comp:doctest --no-terminal --test-arguments "--color=always"
# Variable not in scope: ensureExt :: FileType -> [Char] -> FilePath
# - name: flight-comp:comp
# run: stack test flight-comp:comp --no-terminal --test-arguments "--color=always"
- name: detour-via-sci:hlint
run: stack test detour-via-sci:hlint --no-terminal --test-arguments "--color=always"
### Failure in library/Data/Via/Scientific.hs:81: expression `fromSci x'
# expected: 4043636029064415 % 36028797018963968
# but got: 0.1122334455667788
# - name: detour-via-sci:doctest
# run: stack test detour-via-sci:doctest --no-terminal --test-arguments "--color=always"
- name: detour-via-uom:hlint
run: stack test detour-via-uom:hlint --no-terminal --test-arguments "--color=always"
# compile error, Not in scope: 'u'
# - name: detour-via-uom:doctest
# run: stack test detour-via-uom:doctest --no-terminal --test-arguments "--color=always"
- name: tasty-compare:hlint
run: stack test tasty-compare:hlint --no-terminal --test-arguments "--color=always"
- name: flight-earth:hlint
run: stack test flight-earth:hlint --no-terminal --test-arguments "--color=always"
# on github runner: Examples: 247 Tried: 212 Errors: 0 Failures: 4
# on mac locally: Examples: 247 Tried: 247 Errors: 0 Failures: 0
# - name: flight-earth:doctest
# run: stack test flight-earth:doctest --no-terminal --test-arguments "--color=always"
- name: flight-earth:geodesy
run: stack test flight-earth:geodesy --no-terminal --test-arguments "--color=always"
# 81 out of 222 tests failed
# - name: flight-earth:forbes
# run: stack test flight-earth:forbes --no-terminal --test-arguments "--color=always"
- name: flight-earth:greda
run: stack test flight-earth:greda --no-terminal --test-arguments "--color=always"
- name: flight-earth:greda-r
run: stack test flight-earth:greda-r --no-terminal --test-arguments "--color=always"
- name: flight-earth:meridian
run: stack test flight-earth:meridian --no-terminal --test-arguments "--color=always"
- name: flight-earth:meridian-r
run: stack test flight-earth:meridian-r --no-terminal --test-arguments "--color=always"
- name: flight-earth:published
run: stack test flight-earth:published --no-terminal --test-arguments "--color=always"
- name: flight-earth:published-r
run: stack test flight-earth:published-r --no-terminal --test-arguments "--color=always"
# compile error
# - name: flight-earth:zone
# run: stack test flight-earth:zone --no-terminal --test-arguments "--color=always"
# compile error
# - name: flight-earth:cylinder
# run: stack test flight-earth:cylinder --no-terminal --test-arguments "--color=always"
# compile error
# - name: flight-earth:cylinder-r
# run: stack test flight-earth:cylinder-r --no-terminal --test-arguments "--color=always"
- name: flight-fsdb:hlint
run: stack test flight-fsdb --no-terminal --test-arguments "--color=always"
- name: flight-fsdb:doctest
run: stack test flight-fsdb:doctest --no-terminal --test-arguments "--color=always"
- name: flight-gap-allot:hlint
run: stack test flight-gap-allot:hlint --no-terminal --test-arguments "--color=always"
# 5 failures
# - name: flight-gap-allot:doctest
# run: stack test flight-gap-allot:doctest --no-terminal --test-arguments "--color=always"
- name: flight-gap-effort:hlint
run: stack test flight-gap-effort:hlint --no-terminal --test-arguments "--color=always"
- name: flight-gap-effort:doctest
run: stack test flight-gap-effort:doctest --no-terminal --test-arguments "--color=always"
- name: flight-gap-effort:effort
run: stack test flight-gap-effort:effort --no-terminal --test-arguments "--color=always"
- name: flight-gap-lead:hlint
run: stack test flight-gap-lead:hlint --no-terminal --test-arguments "--color=always"
- name: flight-gap-lead:lead
run: stack test flight-gap-lead:lead --no-terminal --test-arguments "--color=always"
- name: flight-gap-math:hlint
run: stack test flight-gap-math:hlint --no-terminal --test-arguments "--color=always"
- name: flight-gap-math:doctest
run: stack test flight-gap-math:doctest --no-terminal --test-arguments "--color=always"
- name: flight-gap-math:math
run: stack test flight-gap-math:math --no-terminal --test-arguments "--color=always"
- name: flight-gap-stop:hlint
run: stack test flight-gap-stop:hlint --no-terminal --test-arguments "--color=always"
- name: flight-gap-stop:stop
run: stack test flight-gap-stop:stop --no-terminal --test-arguments "--color=always"
- name: flight-gap-valid:hlint
run: stack test flight-gap-valid:hlint --no-terminal --test-arguments "--color=always"
- name: flight-gap-valid:valid
run: stack test flight-gap-valid:valid --no-terminal --test-arguments "--color=always"
- name: flight-gap-weight:hlint
run: stack test flight-gap-weight:hlint --no-terminal --test-arguments "--color=always"
- name: flight-gap-weight:weight
run: stack test flight-gap-weight:weight --no-terminal --test-arguments "--color=always"
- name: flight-igc:hlint
run: stack test flight-igc:hlint --no-terminal --test-arguments "--color=always"
#flight-igc > test (suite: doctest, args: --color=always)
#
#### Failure in library/Flight/Igc/Fix.hs:308: expression `(markJason : _, (fixesJason, _)) = let (Right xs) = parse $(embedStr (readFile fileJason)) in (partition isFix <$> partition isMark xs)'
#expected:
# but got:
# <interactive>:63:59: error:
# • Exception when trying to run compile-time code:
# ./test-suite-doctest/Jason_Kath.20180101-000746.18332.30.igc: openFile: does not exist (No such file or directory)
# Code: embedStr (readFile fileJason)
# • In the untyped splice: $(embedStr (readFile fileJason))
#
#Examples: 110 Tried: 71 Errors: 0 Failures: 1
#
#flight-igc > Test suite doctest failed
# - name: flight-igc:doctest
# run: stack test flight-igc:doctest --no-terminal --test-arguments "--color=always"
- name: flight-kml:hlint
run: stack test flight-kml:hlint --no-terminal --test-arguments "--color=always"
- name: flight-kml:doctest
run: stack test flight-kml:doctest --no-terminal --test-arguments "--color=always"
- name: flight-kml:parse
run: stack test flight-kml:parse --no-terminal --test-arguments "--color=always"
- name: flight-latlng:hlint
run: stack test flight-latlng:hlint --no-terminal --test-arguments "--color=always"
- name: flight-lookup:hlint
run: stack test flight-lookup:hlint --no-terminal --test-arguments "--color=always"
- name: flight-mask:hlint
run: stack test flight-mask:hlint --no-terminal --test-arguments "--color=always"
# 1 failure, ‘tasks’ is not a (visible) field of constructor ‘CompSettings’
# - name: flight-mask:doctest
# run: stack test flight-mask:doctest --no-terminal --test-arguments "--color=always"
- name: flight-route:hlint
run: stack test flight-route:hlint --no-terminal --test-arguments "--color=always"
- name: flight-scribe:hlint
run: stack test flight-scribe:hlint --no-terminal --test-arguments "--color=always"
- name: siggy-chardust:hlint
run: stack test siggy-chardust:hlint --no-terminal --test-arguments "--color=always"
- name: siggy-chardust:doctest
run: stack test siggy-chardust:doctest --no-terminal --test-arguments "--color=always"
- name: siggy-chardust:digits
run: stack test siggy-chardust:digits --no-terminal --test-arguments "--color=always"
- name: flight-span:hlint
run: stack test flight-span:hlint --no-terminal --test-arguments "--color=always"
- name: flight-task:hlint
run: stack test flight-task:hlint --no-terminal --test-arguments "--color=always"
# compile errors
# - name: flight-task:task
# run: stack test flight-task:task --no-terminal --test-arguments "--color=always"
- name: flight-time:hlint
run: stack test flight-time:hlint --no-terminal --test-arguments "--color=always"
# No longer compiles
# - name: flight-time:golden
# run: stack test flight-time:golden --no-terminal --test-arguments "--color=always"
# parse error on SCC annotation
# - name: flight-track:hlint
# run: stack test flight-track:hlint --no-terminal --test-arguments "--color=always"
# 1 failure
# - name: flight-track:doctest
# run: stack test flight-track:doctest --no-terminal --test-arguments "--color=always"
- name: flight-units:hlint
run: stack test flight-units:hlint --no-terminal --test-arguments "--color=always"
- name: flight-units:doctest
run: stack test flight-units:doctest --no-terminal --test-arguments "--color=always"
- name: flight-zone:hlint
run: stack test flight-zone:hlint --no-terminal --test-arguments "--color=always"
- name: flight-zone:doctest
run: stack test flight-zone:doctest --no-terminal --test-arguments "--color=always"
- name: flight-zone:serial
run: stack test flight-zone:serial --no-terminal --test-arguments "--color=always"
- name: flare-timing:hlint
run: stack test flare-timing:hlint --no-terminal --test-arguments "--color=always"