- Notifications
You must be signed in to change notification settings - Fork441
Build system and test suite update#759
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
9dbfa18
3aeac61
8c963bb
bfb591b
9fc6005
e8fd49e
69fb34a
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 |
---|---|---|
@@ -6,6 +6,7 @@ dependencies: | ||
- pytest | ||
- pytest-cov | ||
- pytest-timeout | ||
- pytest-xvfb | ||
- numpy | ||
- matplotlib | ||
- scipy |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -13,19 +13,8 @@ jobs: | ||
path: python-control | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
- name: Install Python dependencies and test tools | ||
run: pip install -v -e './python-control[test]' | ||
- name: Checkout Slycot | ||
uses: actions/checkout@v3 | ||
@@ -43,11 +32,10 @@ jobs: | ||
# Install compilers, libraries, and development environment | ||
sudo apt-get -y install gfortran cmake --fix-missing | ||
sudo apt-get -y install libblas-dev liblapack-dev | ||
# Compile and install slycot | ||
pip install -v . | ||
- name: Test with pytest | ||
working-directory: python-control | ||
run:pytest -v control/tests | ||
murrayrm marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -8,30 +8,32 @@ jobs: | ||
Py${{ matrix.python-version }}; | ||
${{ matrix.slycot || 'no' }} Slycot; | ||
${{ matrix.pandas || 'no' }} Pandas; | ||
${{ matrix.cvxopt || 'no' }} CVXOPT | ||
${{ matrix.array-and-matrix == 1 && '; array and matrix' || '' }} | ||
${{ matrix.mplbackend && format('; {0}', matrix.mplbackend) }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 5 | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.7', '3.10'] | ||
slycot: ["", "conda"] | ||
pandas: [""] | ||
cvxopt: ["", "conda"] | ||
mplbackend: [""] | ||
array-and-matrix: [0] | ||
include: | ||
- python-version:'3.10' | ||
slycot: conda | ||
pandas: conda | ||
cvxopt: conda | ||
mplbackend: QtAgg | ||
array-and-matrix: 1 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Conda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
@@ -55,15 +57,15 @@ jobs: | ||
mamba install pandas | ||
fi | ||
if [[ '${{matrix.cvxopt}}' == 'conda' ]]; then | ||
mamba install cvxopt | ||
bnavigator marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
fi | ||
- name: Test with pytest | ||
shell: bash -l {0} | ||
env: | ||
PYTHON_CONTROL_ARRAY_AND_MATRIX: ${{ matrix.array-and-matrix }} | ||
MPLBACKEND: ${{ matrix.mplbackend }} | ||
run:pytest -v --cov=control --cov-config=.coveragerc control/tests | ||
bnavigator marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
- name: Coveralls parallel | ||
# https://github.com/coverallsapp/github-action | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -46,6 +46,8 @@ def sys221(self): | ||
D221 = [[1., -1.]] | ||
return StateSpace(A222, B222, C221, D221) | ||
@pytest.mark.skipif(plt.get_current_fig_manager().toolbar is None, | ||
reason="Requires the zoom toolbar") | ||
murrayrm marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
def test_sisotool(self, tsys): | ||
sisotool(tsys, Hz=False) | ||
fig = plt.gcf() | ||
@@ -114,6 +116,8 @@ def test_sisotool(self, tsys): | ||
assert_array_almost_equal( | ||
ax_step.lines[0].get_data()[1][:10], step_response_moved, 4) | ||
@pytest.mark.skipif(plt.get_current_fig_manager().toolbar is None, | ||
reason="Requires the zoom toolbar") | ||
@pytest.mark.parametrize('tsys', [0, True], | ||
indirect=True, ids=['ctime', 'dtime']) | ||
def test_sisotool_tvect(self, tsys): | ||
Uh oh!
There was an error while loading.Please reload this page.