Skip to content

Commit

Permalink
creating artifact for environment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
robfalck committed Jul 21, 2023
1 parent 7117870 commit ac8b5fa
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/dymos_tests_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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"
Expand All @@ -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:
Expand Down

0 comments on commit ac8b5fa

Please sign in to comment.