Skip to content

Commit 0fce64b

Browse files
committed
install pytest-rerunfailures
1 parent 1927727 commit 0fce64b

4 files changed

Lines changed: 10 additions & 12 deletions

File tree

.github/conda-env/test-env.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ dependencies:
66
- pytest
77
- pytest-cov
88
- pytest-timeout
9+
- pytest-rerunfailures
910
- numpy
1011
- matplotlib
1112
- scipy

.github/workflows/control-slycot-src.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,8 @@ jobs:
1818
# Set up (virtual) X11
1919
sudo apt-get -y install libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 x11-utils
2020
21-
# Install test tools
22-
pip install pytest pytest-timeout
23-
24-
# Install python-control dependencies
25-
pip install numpy matplotlib scipy
21+
# Install python-control with dependencies including test tools
22+
pip install -e '.[test]'
2623
2724
- name: Checkout Slycot
2825
uses: actions/checkout@v3

.github/workflows/install_examples.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
conda config --add channels conda-forge
1616
conda config --set channel_priority strict
1717
18-
# Install build and test tools
19-
conda install pip pytest
18+
# Install build tools
19+
conda install pip setuptools setuptools-scm
2020
21-
# Install python-control dependencies
22-
conda install numpy matplotlib scipy jupyter
23-
conda install slycot pmw
21+
# Install python-control dependencies and extras
22+
conda install numpy matplotlib scipy
23+
conda install slycot pmw jupyter
2424
2525
- name: Install from source
2626
run: pip install .

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ dynamic = ["version"]
4040
packages = ["control"]
4141

4242
[project.optional-dependencies]
43-
test = ["pytest", "pytest-timeout"]
43+
test = ["pytest", "pytest-timeout", "pytest-rerunfailures"]
4444
slycot = [ "slycot>=0.4.0" ]
4545
cvxopt = [ "cvxopt>=1.2.0" ]
4646

@@ -52,7 +52,7 @@ source = "https://github.com/python-control/python-control"
5252
write_to = "control/_version.py"
5353

5454
[tool.pytest.ini_options]
55-
addopts = "-ra"
55+
addopts = "-rav"
5656
filterwarnings = [
5757
"error:.*matrix subclass:PendingDeprecationWarning",
5858
]

0 commit comments

Comments
 (0)