File tree Expand file tree Collapse file tree 2 files changed +26
-9
lines changed Expand file tree Collapse file tree 2 files changed +26
-9
lines changed Original file line number Diff line number Diff line change 1
1
[run]
2
2
source = slycot
3
- omit = */tests/*
3
+ omit =
4
+ */tests/*
5
+ */version.py
6
+
7
+
8
+ # please do not add any sections after this block
9
+ # the CI will add the slycot modules as last line here
10
+ [paths]
11
+ source =
12
+ slycot/
Original file line number Diff line number Diff line change @@ -138,16 +138,24 @@ install:
138
138
139
139
script :
140
140
# slycots own unit tests as installed, not those from source dir
141
- - cd ..
141
+ - mkdir ../slycot-coverage
142
+ - cd ../slycot-coverage
142
143
- slycot_dir=$(python -c "import slycot; print(slycot.__path__[0])")
143
- - pytest --pyargs slycot --cov=$slycot_dir --cov-config=Slycot/.coveragerc
144
- #
145
- # As a deeper set of tests, get test against python-control as well
144
+ - pytest --pyargs slycot --cov=$slycot_dir --cov-config=../Slycot/.coveragerc
146
145
#
147
- # Get python-control from source and install
148
- - git clone --depth 1 https://github.com/python-control/python-control.git control
149
- - cd control
150
- - python setup.py test
146
+ # As a deeper set of tests, use the suite from python-control master branch as well
147
+ - cd ..
148
+ - git clone --depth 1 https://github.com/python-control/python-control.git
149
+ - cd python-control
150
+ - pytest --disable-warnings --cov=$slycot_dir --cov-config=../Slycot/.coveragerc control/tests
151
+
151
152
152
153
after_success :
154
+ # go back to Slycot dir and merge the coverage to report correct repo data with coveralls
155
+ - cd ../Slycot
156
+ - cp ../slycot-coverage/.coverage .coverage.slycot
157
+ - cp ../python-control/.coverage .coverage.control
158
+ - echo " $slycot_dir" >> .coveragerc
159
+ - coverage combine
160
+ - coverage report
153
161
- coveralls
You can’t perform that action at this time.
0 commit comments