Refactor the test suite using pytest for array and matrix types (#438) · python-control/python-control@c432fd5

@@ -13,72 +13,38 @@ cache:

1313

- $HOME/.local

14141515

python:

16+

- "3.9"

17+

- "3.8"

1618

- "3.7"

1719

- "3.6"

18-

- "2.7"

192020-

# Test against multiple version of SciPy, with and without slycot

21-

#

22-

# Because there were significant changes in SciPy between v0 and v1, we

23-

# test against both of these using the Travis CI environment capability

24-

#

25-

# We also want to test with and without slycot

2621

env:

2722

- SCIPY=scipy SLYCOT=conda # default, with slycot via conda

2823

- SCIPY=scipy SLYCOT= # default, w/out slycot

29-

- SCIPY="scipy==0.19.1" SLYCOT= # legacy support, w/out slycot

30243125

# Add optional builds that test against latest version of slycot, python

3226

jobs:

3327

include:

34-

- name: "linux, Python 2.7, slycot=source"

35-

os: linux

36-

dist: xenial

37-

services: xvfb

38-

python: "2.7"

39-

env: SCIPY=scipy SLYCOT=source

40-

- name: "linux, Python 3.7, slycot=source"

41-

os: linux

42-

dist: xenial

43-

services: xvfb

44-

python: "3.7"

45-

env: SCIPY=scipy SLYCOT=source

46-

- name: "linux, Python 3.8, slycot=source"

47-

os: linux

48-

dist: xenial

49-

services: xvfb

28+

- name: "Python 3.8, slycot=source"

5029

python: "3.8"

5130

env: SCIPY=scipy SLYCOT=source

52-

- name: "use numpy matrix"

53-

dist: xenial

54-

services: xvfb

55-

python: "3.8"

56-

env: SCIPY=scipy SLYCOT=source PYTHON_CONTROL_STATESPACE_ARRAY=1

57-58-

# Exclude combinations that are very unlikely (and don't work)

59-

exclude:

60-

- python: "3.7" # python3.7 should use latest scipy

31+

- name: "Python 3.9, slycot=source, array and matrix"

32+

python: "3.9"

33+

env: SCIPY=scipy SLYCOT=source PYTHON_CONTROL_ARRAY_AND_MATRIX=1

34+

# Because there were significant changes in SciPy between v0 and v1, we

35+

# also test against the latest v0 (without Slycot) for old pythons.

36+

# newer pythons should always use newer SciPy.

37+

- name: "Python 2.7, Scipy 0.19.1"

38+

python: "2.7"

39+

env: SCIPY="scipy==0.19.1" SLYCOT=

40+

- name: "Python 3.6, Scipy 0.19.1"

41+

python: "3.6"

6142

env: SCIPY="scipy==0.19.1" SLYCOT=

62436344

allow_failures:

64-

- name: "linux, Python 2.7, slycot=source"

65-

os: linux

66-

dist: xenial

67-

services: xvfb

68-

python: "2.7"

69-

env: SCIPY=scipy SLYCOT=source

70-

- name: "linux, Python 3.7, slycot=source"

71-

os: linux

72-

dist: xenial

73-

services: xvfb

74-

python: "3.7"

75-

env: SCIPY=scipy SLYCOT=source

76-

- name: "linux, Python 3.8, slycot=source"

77-

os: linux

78-

dist: xenial

79-

services: xvfb

80-

python: "3.8"

81-

env: SCIPY=scipy SLYCOT=source

45+

- env: SCIPY=scipy SLYCOT=source

46+

- env: SCIPY=scipy SLYCOT=source PYTHON_CONTROL_ARRAY_AND_MATRIX=1

47+82488349

# install required system libraries

8450

before_install: