87
87
- name : Check that "evaluation" section appears in help string
88
88
run : python -m evap --help | grep --fixed-strings "[evaluation]"
89
89
90
+ test_frontend :
91
+ name : Test Frontend
92
+
93
+ runs-on : ubuntu-22.04
94
+
95
+ steps :
96
+ - uses : actions/checkout@v4
97
+ with :
98
+ submodules : true
99
+
100
+ - uses : ./.github/setup_evap
101
+ with :
102
+ shell : .#evap-frontend-dev
103
+ start-db : true
104
+
105
+ - name : Compile assets
106
+ run : |
107
+ python manage.py ts compile
108
+ python manage.py scss
109
+
110
+ - name : Run tests (shuffled)
111
+ run : coverage run manage.py test --shuffle --tag selenium
112
+ - name : Upload coverage
113
+ uses : codecov/codecov-action@v5
114
+ with :
115
+ flags : frontend-tests
116
+ token : ${{ secrets.CODECOV_TOKEN }}
117
+
90
118
mypy :
91
119
runs-on : ubuntu-22.04
92
120
@@ -98,6 +126,21 @@ jobs:
98
126
- name : Run MyPy
99
127
run : mypy
100
128
129
+ typescript :
130
+ runs-on : ubuntu-22.04
131
+ name : Test Typescript
132
+
133
+ steps :
134
+ - uses : actions/checkout@v4
135
+ with :
136
+ submodules : true
137
+ - uses : ./.github/setup_evap
138
+ with :
139
+ npm-ci : true
140
+
141
+ - name : Run tests
142
+ run : python manage.py ts test
143
+
101
144
linter :
102
145
runs-on : ubuntu-22.04
103
146
@@ -171,83 +214,6 @@ jobs:
171
214
- name : Reload backup
172
215
run : echo "yy" | deployment/load_production_backup.sh backup.json
173
216
174
- compile_scss :
175
- runs-on : ubuntu-22.04
176
-
177
- name : Compile Scss
178
-
179
- steps :
180
- - uses : actions/checkout@v4
181
- with :
182
- submodules : true
183
- - uses : ./.github/setup_evap
184
- with :
185
- npm-ci : true
186
-
187
- - name : Compile Scss
188
- run : npx sass evap/static/scss/evap.scss evap/static/css/evap.css
189
- - name : Store Css
190
- uses : actions/upload-artifact@v4
191
- with :
192
- name : css
193
- path : evap/static/css/evap.css
194
-
195
- render_pages :
196
- runs-on : ubuntu-22.04
197
-
198
- name : Render Html pages
199
-
200
- steps :
201
- - uses : actions/checkout@v4
202
- - uses : ./.github/setup_evap
203
- with :
204
- start-db : true
205
-
206
- - name : Render pages
207
- run : coverage run manage.py ts render_pages
208
- - name : Upload coverage
209
- uses : codecov/codecov-action@v5
210
- with :
211
- flags : render-pages
212
- token : ${{ secrets.CODECOV_TOKEN }}
213
- - name : Store rendered pages
214
- uses : actions/upload-artifact@v4
215
- with :
216
- name : rendered-pages
217
- path : evap/static/ts/rendered
218
-
219
- typescript :
220
- runs-on : ubuntu-22.04
221
-
222
- needs : [ compile_scss, render_pages ]
223
-
224
- name : Test Typescript
225
-
226
- steps :
227
- - uses : actions/checkout@v4
228
- with :
229
- submodules : true
230
- - uses : ./.github/setup_evap
231
- with :
232
- npm-ci : true
233
-
234
- - run : npx puppeteer browsers install chrome
235
-
236
- - name : Compile Typescript
237
- run : npx tsc --project evap/static/ts/tsconfig.compile.json
238
- - name : Load rendered pages
239
- uses : actions/download-artifact@v4
240
- with :
241
- name : rendered-pages
242
- path : evap/static/ts/rendered
243
- - name : Load Css
244
- uses : actions/download-artifact@v4
245
- with :
246
- name : css
247
- path : evap/static/css
248
- - name : Run tests
249
- run : xvfb-run --auto-servernum npx jest
250
-
251
217
macos-nix-build :
252
218
runs-on : macos-14
253
219
name : Build nix environment on MacOS
0 commit comments