Skip to content

Commit a030ae0

Browse files
authored
TST run some tutorials on github actions (#11)
1 parent c331f81 commit a030ae0

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

.github/workflows/run_tests.yml

+8
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,11 @@ jobs:
6969
- name: Run codecov
7070
run: |
7171
codecov
72+
73+
- name: Run some tutorials
74+
run: |
75+
# do not run all tutorials because it is slow on CPU
76+
python tutorials/shortclips/00_download_shortclips.py
77+
python tutorials/shortclips/01_plot_explainable_variance.py
78+
python tutorials/shortclips/02_plot_ridge_regression.py
79+
python tutorials/shortclips/03_plot_wordnet_model.py

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"scikit-learn>=0.23",
2323
"matplotlib",
2424
"networkx",
25+
"pydot",
2526
"nltk",
2627
"pycortex>=1.2.4",
2728
"himalaya",

tutorials/shortclips/17827577erwub1wv.tmp

Whitespace-only changes.

voxelwise_tutorials/wordnet.py

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def correct_coefficients(primal_coef, feature_names, norm_by_depth=True):
8484
import itertools
8585
import nltk
8686
nltk.download('wordnet', quiet=True)
87+
nltk.download('omw-1.4', quiet=True)
8788
from nltk.corpus import wordnet
8889

8990
def _get_hypernyms(name):

0 commit comments

Comments
 (0)