Skip to content

Conversation

@roryyorke
Copy link
Contributor

Using these markers allows selection of tests at the command-line, which is useful to focus on specific test types in development, and specifically allows testing only Slycot-dependent tests in Slycot CI.

Rory Yorke added 4 commits October 18, 2025 14:08
The pytest marker slycot is equivalent to the slycotonly decorator,
and also allows slycot tests to be included or excluded at the pytest
command-line.
The pytest marker cvxopt is equivalent to the cvxoptonly decorator,
and also allows cvxopt tests to be included or excluded at the pytest
command-line.
@coveralls
Copy link

coveralls commented Oct 18, 2025

Coverage Status

coverage: 94.734%. remained the same
when pulling 01d76fd on roryyorke:rory/test-markers
into abeb0e4 on python-control:main.

@roryyorke
Copy link
Contributor Author

Is it expected that the OS/BLAS test matrix workflow doesn't run?

@bnavigator
Copy link
Contributor

It only runs when one of the specified files in .github is changed: #821

@roryyorke
Copy link
Contributor Author

Anyone had a look at this yet? Would like to merge this so Slycot tests can be clean, and we can move ahead with python-control/Slycot#250 .

Comment on lines 9 to 10
cvxoptonly = pytest.mark.skipif(
not control.exception.cvxopt_check(), reason="cvxopt not installed")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replace this as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, missed that. Fixed in 01d76fd

@bnavigator
Copy link
Contributor

Yes, sorry for not getting back earlier. LGTM.

@murrayrm murrayrm merged commit 2435a6a into python-control:main Nov 2, 2025
24 checks passed
@roryyorke roryyorke deleted the rory/test-markers branch November 2, 2025 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants