Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bachelor of Applied Data Science
Data Challenges Unit Resources
Commits
9d5b0c55
Unverified
Commit
9d5b0c55
authored
Jul 12, 2021
by
Simon Bowly
Browse files
Add testing scripts to catch broken notebooks.
parent
230d7c9a
Changes
3
Show whitespace changes
Inline
Side-by-side
noxfile.py
0 → 100644
View file @
9d5b0c55
import
nox
@
nox
.
session
(
python
=
[
"3.9"
],
reuse_venv
=
True
)
def
nbtest
(
session
):
session
.
install
(
"-r"
,
"requirements.txt"
)
session
.
run
(
"bash"
,
"test.sh"
,
"."
,
external
=
True
)
requirements.txt
0 → 100644
View file @
9d5b0c55
IPython
jupyter
matplotlib
numpy
pandas
pydicom
scipy
seaborn
scikit-image
scikit-learn
test.sh
0 → 100644
View file @
9d5b0c55
#!/bin/bash
rm
-f
tested.lst
git ls-files
$1
|
grep
ipynb | xargs
-I
{}
sh
-c
'echo {} >> tested.lst; if jupyter nbconvert --to html --execute {}; then echo {}; fi'
>
ok.lst
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment