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

Updated the GitHub workflow to test with '[all]' extra dependencies #929

Merged
merged 1 commit into from
Apr 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions .github/workflows/dymos_tests_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
PYOPTSPARSE: 'v2.9.3'
SNOPT: 7.7
OPENMDAO: 'latest'
OPTIONAL: '[test]'
OPTIONAL: '[all]'
JAX: '0.3.24'

# baseline versions except no pyoptsparse or SNOPT
Expand Down Expand Up @@ -239,15 +239,6 @@ jobs:
pip install openmdao==${{ matrix.OPENMDAO }}
fi

- name: Install optional dependencies
if: env.RUN_BUILD && matrix.OPTIONAL == '[all]'
shell: bash -l {0}
run: |
echo "============================================================="
echo "Install additional packages for testing/coverage"
echo "============================================================="
pip install bokeh

- name: Install Dymos
if: env.RUN_BUILD
shell: bash -l {0}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,19 @@ def two_burn_orbit_raise_problem(transcription='gauss-lobatto', optimizer='SLSQP
@use_tempdirs
class TestExampleTwoBurnOrbitRaise(unittest.TestCase):

def setUp(self):
# We need to remove the TESTFLO_RUNNING environment variable for reports to be generated.
# The reports code checks to see if TESTFLO_RUNNING is set and will not do anything if set
self.testflo_running = os.environ.pop('TESTFLO_RUNNING', None)

def tearDown(self):
if os.path.isdir('plots'):
shutil.rmtree('plots')

# restore what was there before running the test
if self.testflo_running is not None:
os.environ['TESTFLO_RUNNING'] = self.testflo_running

@unittest.skipIf(not bokeh_available, 'bokeh unavailable')
def test_bokeh_plots(self):
dm.options['plots'] = 'bokeh'
Expand Down