Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update workflow to pass jobname to python-control pytest #190

Merged
merged 3 commits into from
Dec 29, 2022

Conversation

murrayrm
Copy link
Member

This PR passes information about the current OS and BLAS version that is being used in slycot testing to python-control unit tests to avoid generating errors on known failure modes. This allows the changes in python-control PR #821 to xfail on configurations that were causing errors (outside of slycot functionality).

A better fix would be to somehow set up the python-control unit tests to only run those that rely on slycot functions when using for slycot testing. But I couldn't think of an easy way to do that.

@@ -283,7 +283,9 @@ jobs:
pip install slycot-wheels/${{ matrix.packagekey }}/slycot*.whl
pip show slycot
- name: Slycot and python-control tests
run: bash slycot-src/.github/scripts/run-tests.sh
run: JOBNAME=$JOBNAME bash slycot-src/.github/scripts/run-tests.sh
Copy link
Collaborator

Choose a reason for hiding this comment

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

I am surprised that this works without quotes around $JOBNAME as there is a space in the value.

@murrayrm
Copy link
Member Author

Added quotes just to be safe + added the build type (pip/wheel vs conda) so that we only xfail on conda. This PR will generate errors until python-control master is updated to check the build type (coming soon).

@bnavigator bnavigator merged commit 773c893 into python-control:master Dec 29, 2022
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.

None yet

2 participants