File tree 2 files changed +25
-0
lines changed
2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ [run]
2
+ source =
3
+ trax/
4
+ omit =
5
+ *_test.py
6
+ */site-packages/*
7
+
8
+ [report]
9
+ omit =
10
+ */site-packages/*
11
+ exclude_lines =
12
+ pragma: no cover
13
+ def __repr__
14
+ raise NotImplementedError
15
+ if __name__ == .__main__.:
16
+
Original file line number Diff line number Diff line change 16
16
17
17
set -v # print commands as they're executed
18
18
19
+ # aliases aren't expanded in non-interactive shells by default.
20
+ shopt -s expand_aliases
21
+
19
22
# Instead of exiting on any failure with "set -e", we'll call set_status after
20
23
# each command and exit $STATUS at the end.
21
24
STATUS=0
42
45
python -c " import trax"
43
46
set_status
44
47
48
+ # Run pytest with coverage.
49
+ alias pytest=' coverage run -m pytest'
50
+
45
51
# Check tests, separate out directories for easy triage.
46
52
47
53
# Disabled test fails with "disable-warnings", tested separately.
@@ -101,4 +107,7 @@ jupyter nbconvert --ExecutePreprocessor.kernel_name=python3 \
101
107
trax/intro.ipynb;
102
108
set_status
103
109
110
+ # Print coverage report.
111
+ coverage report -m
112
+
104
113
exit $STATUS
You can’t perform that action at this time.
0 commit comments