File tree 4 files changed +17
-6
lines changed
4 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 43
43
run :
44
44
pytest examples/
45
45
--nbval-lax
46
- --ignore="examples/paper_recreations/Blunt et al. (2013)"
47
- --ignore="examples/paper_recreations/Wu et al. (2010)"
46
+
Original file line number Diff line number Diff line change 52
52
pytest .
53
53
--cov=.
54
54
--cov-report=xml
55
- --ignore=scripts
56
55
57
56
- name : Upload coverage to Codecov
58
57
if : (matrix.python-version == 3.8) && (matrix.os == 'ubuntu-latest')
Original file line number Diff line number Diff line change 1
- .SILENT : clean
2
- .PHONY : clean
1
+ .SILENT : clean nbtest test
2
+ .PHONY : clean nbtest test
3
3
4
4
clean :
5
+ echo " Cleaning up the repo..."
5
6
python bin/clean
7
+
8
+ nbtest :
9
+ echo " Running example notebooks..."
10
+ pytest examples --nbval-lax \
11
+ --ignore ="examples/paper_recreations/Blunt et al. (2013)" \
12
+ --ignore="examples/paper_recreations/Wu et al. (2010)"
13
+
14
+ test :
15
+ echo " Running unit tests..."
16
+ pytest --ignore=scripts
17
+
Original file line number Diff line number Diff line change @@ -18,9 +18,10 @@ if 'cov' in sys.argv:
18
18
if 'nbval' in sys .argv :
19
19
args .append ('--nbval' )
20
20
21
- if 'ignore-examples ' in sys .argv :
21
+ if 'min ' in sys .argv :
22
22
args .extend (['--ignore=examples/' ])
23
23
args .extend (['--ignore=scripts/' ])
24
24
25
25
exit_code = pytest .main (args )
26
26
exit (exit_code )
27
+
You can’t perform that action at this time.
0 commit comments