Skip to content

Commit

Permalink
update workflow to test [all], fix bokeh plots test (#929)
Browse files Browse the repository at this point in the history
Co-authored-by: swryan <[email protected]>
  • Loading branch information
swryan and swryan authored Apr 19, 2023
1 parent 1f1da42 commit 02820f1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
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

0 comments on commit 02820f1

Please sign in to comment.