From ac8b5fa139ff609bbef4233fb975f7e9a398ba26 Mon Sep 17 00:00:00 2001 From: Rob Falck Date: Fri, 21 Jul 2023 10:46:32 -0400 Subject: [PATCH] creating artifact for environment.yml --- .github/workflows/dymos_tests_workflow.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dymos_tests_workflow.yml b/.github/workflows/dymos_tests_workflow.yml index b96f622cf..31480b650 100644 --- a/.github/workflows/dymos_tests_workflow.yml +++ b/.github/workflows/dymos_tests_workflow.yml @@ -77,9 +77,9 @@ jobs: OPENMPI: '4.0' MPI4PY: '3.0' PETSc: 3.13 - PYOPTSPARSE: 'v2.9.3' + PYOPTSPARSE: 'v2.6.1' SNOPT: 7.2 - OPENMDAO: 3.21.0 + OPENMDAO: 3.26.0 OPTIONAL: '[test]' steps: @@ -254,6 +254,7 @@ jobs: run: | conda info conda list + conda env export --name test --file $HOME/environment.yml echo "=============================================================" echo "Check installed versions of Python, Numpy and Scipy" @@ -267,6 +268,13 @@ jobs: python -c "import scipy; assert str(scipy.__version__).startswith(str(${{ matrix.SCIPY }})), \ f'Scipy version {scipy.__version__} is not the requested version (${{ matrix.SCIPY }})'" + - name: 'Upload environment artifact' + uses: actions/upload-artifact@v3 + with: + name: environment + path: environment.yml + retention-days: 5 + - name: Run tests if: env.RUN_BUILD env: