Skip to content

I682 add CI matrix entry for testing without pyoptsparse #697

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

Merged

Conversation

hschilling
Copy link
Member

Summary

Added CI matrix entry for the case where pyoptsparse is not installed.

Also, moved 3 require_pyoptsparse decorators from setUp method to test class they were contained in. Having them on setUp was causing problems because the use_tempdir decorator, which was also on these classes, was not being completely executed when pyoptsparse was not installed. The require_pyoptsparse decorator short-circuited the process and the test never was put back into the home directory. This causes failures in parts of the CI that followed. Specifically, the coveralls part of the CI expected to find the .coverage file in the home directory.

Related Issues

Backwards incompatibilities

None

New Dependencies

None

@hschilling hschilling self-assigned this Dec 13, 2021
@coveralls
Copy link

coveralls commented Dec 13, 2021

Coverage Status

Coverage increased (+0.02%) to 95.456% when pulling a866509 on hschilling:I682-add-dymos-ci-without-pyoptsparse into cf26d76 on OpenMDAO:master.

@@ -5,7 +5,7 @@ name: Dymos Tests
on:
# Trigger on push or pull request events for the master branch
push:
branches: [ master ]
branches: [ master, I682-add-dymos-ci-without-pyoptsparse ]
Copy link
Contributor

Choose a reason for hiding this comment

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

debugging?

# MBI: 1
# OPENMDAO: 'latest'
# OPTIONAL: '[all]'
# DOCS: 1
Copy link
Contributor

Choose a reason for hiding this comment

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

this needs uncommented?

… require_pyoptsparse decorators but not specific to SNOPT. SNOPT should not be needed now
@robfalck robfalck merged commit caa2346 into OpenMDAO:master Dec 14, 2021
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.

Add a CI matrix entry without pyOptSparse
5 participants