- Notifications
You must be signed in to change notification settings - Fork441
Switch to pytest and add optional Python 3.8 test#380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
a70583b
989326d
e4e490c
ed8a27b
64adf46
866e9ee
e25e8b2
263735a
53202aa
c2ade6f
1881f9d
aed449d
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -28,7 +28,7 @@ env: | ||
- SCIPY=scipy SLYCOT= # default, w/out slycot | ||
- SCIPY="scipy==0.19.1" SLYCOT= # legacy support, w/out slycot | ||
# Add optional builds that test against latest version of slycot, python | ||
jobs: | ||
include: | ||
- name: "linux, Python 2.7, slycot=source" | ||
@@ -43,8 +43,13 @@ jobs: | ||
services: xvfb | ||
python: "3.7" | ||
env: SCIPY=scipy SLYCOT=source | ||
- name: "linux, Python 3.8, slycot=source" | ||
os: linux | ||
dist: xenial | ||
services: xvfb | ||
python: "3.8" | ||
env: SCIPY=scipy SLYCOT=source | ||
# Exclude combinations that are very unlikely (and don't work) | ||
exclude: | ||
- python: "3.7" # python3.7 should use latest scipy | ||
@@ -63,6 +68,12 @@ matrix: | ||
services: xvfb | ||
python: "3.7" | ||
env: SCIPY=scipy SLYCOT=source | ||
- name: "linux, Python 3.8, slycot=source" | ||
os: linux | ||
dist: xenial | ||
services: xvfb | ||
python: "3.8" | ||
env: SCIPY=scipy SLYCOT=source | ||
# install required system libraries | ||
before_install: | ||
@@ -97,6 +108,7 @@ before_install: | ||
fi | ||
# Make sure to look in the right place for python libraries (for slycot) | ||
- export LIBRARY_PATH="$HOME/miniconda/envs/test-environment/lib" | ||
- conda install pytest | ||
# coveralls not in conda repos => install via pip instead | ||
- pip install coveralls | ||
@@ -118,7 +130,7 @@ install: | ||
# command to run tests | ||
script: | ||
- 'if [ $SLYCOT != "" ]; then python -c "import slycot"; fi' | ||
- coverage run-m pytest --disable-warnings control/tests | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. There are 18,209 warning messages and unfortunately pytest prints error messages first => I found it hard to locate the errors. Most of the warnings seem to be around the use of | ||
# only run examples if Slycot is install | ||
# set PYTHONPATH for examples | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -79,11 +79,5 @@ | ||
except ImportError: | ||
__version__ = "dev" | ||
# Initialize default parameter values | ||
reset_defaults() |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -127,9 +127,5 @@ def tearDown(self): | ||
ct.reset_defaults() | ||
if __name__ == '__main__': | ||
unittest.main() |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -235,8 +235,5 @@ def test_options(self): | ||
ctrl.config.reset_defaults() | ||
if __name__ == '__main__': | ||
unittest.main() |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -29,9 +29,6 @@ def testNgrid(self): | ||
nichols(self.sys, grid=False) | ||
ngrid() | ||
if __name__ == "__main__": | ||
unittest.main() |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -388,5 +388,6 @@ def testSiso(self): | ||
def tearDown(self): | ||
control.config.reset_defaults() | ||
if __name__ == "__main__": | ||
unittest.main() |
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -192,10 +192,6 @@ def testFreqResp(self): | ||
decimal=2) | ||
if __name__ == '__main__': | ||
unittest.main() | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -409,11 +409,5 @@ def tearDown(self): | ||
reset_defaults() | ||
if __name__ == '__main__': | ||
unittest.main() |
Uh oh!
There was an error while loading.Please reload this page.