File tree 1 file changed +39
-0
lines changed
1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -143,3 +143,42 @@ jobs:
143
143
python -m pytest --pyargs pythonfmu
144
144
cd ..
145
145
shell : bash -l {0}
146
+
147
+ test-notebook :
148
+ runs-on : ubuntu-latest
149
+
150
+ steps :
151
+ - uses : actions/checkout@v2
152
+
153
+ - name : Cache conda packages for Linux
154
+ if : startsWith(runner.os, 'Linux')
155
+ uses : actions/cache@v1
156
+ with :
157
+ path : /usr/share/miniconda/pkgs
158
+ key : ${{ runner.os }}-test-nb-cache-conda-pkgs-${{ hashFiles('binder/environment.yml') }}
159
+ restore-keys : |
160
+ ${{ runner.os }}-test-nb-cache-conda-pkgs-
161
+ ${{ runner.os }}-test-nb-
162
+
163
+ - name : Setup Python
164
+ uses : goanpeca/setup-miniconda@v1
165
+ with :
166
+ auto-update-conda : true
167
+
168
+ - name : Run the Tests
169
+ run : |
170
+ conda activate test
171
+ # Install binder dependencies - update binder/environment.yml if they changed
172
+ cp binder/* .
173
+ conda env update --name=test --file=environment.yml
174
+ bash ./postBuild
175
+ cd ./examples
176
+ jupyter nbconvert --to notebook --execute demo.ipynb
177
+ cd ..
178
+ shell : bash -l {0}
179
+
180
+ - name : Archive executed notbook
181
+ uses : actions/upload-artifact@v1
182
+ with :
183
+ name : nb-examples
184
+ path : examples
You can’t perform that action at this time.
0 commit comments