-
-
Notifications
You must be signed in to change notification settings - Fork 2
192 lines (145 loc) · 7.08 KB
/
stack.yml
File metadata and controls
192 lines (145 loc) · 7.08 KB
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
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.10"]
ghc:
- "8.2"
steps:
- uses: mstksg/get-package@v1
name: Install OS Packages
with:
apt-get: libgmp-dev
- uses: actions/checkout@v3
with:
submodules: true
- uses: haskell-actions/setup@v2
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:doctest
run: stack test flight-clip:doctest --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:doctest
run: stack test detour-via-sci:doctest --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"
# 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:doctest
run: stack test flight-fsdb:doctest --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: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:lead
run: stack test flight-gap-lead:lead --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:stop
run: stack test flight-gap-stop:stop --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:weight
run: stack test flight-gap-weight:weight --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: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"
# 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: 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"
# compile errors
# - name: flight-task:task
# run: stack test flight-task:task --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"
# 1 failure
# - name: flight-track:doctest
# run: stack test flight-track:doctest --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: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"