Skip to content

Commit

Permalink
add RUN_BUILD condition to workflow steps
Browse files Browse the repository at this point in the history
  • Loading branch information
swryan committed Aug 21, 2024
1 parent 5d5255f commit c1df410
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/dymos_tests_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -305,13 +305,15 @@ jobs:
pipdeptree
- name: 'Upload environment artifact'
if: env.RUN_BUILD
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.NAME }}_environment
path: ${{ matrix.NAME }}_environment.yml
retention-days: 5

- name: Check NumPy 2.0 Compatibility
if: env.RUN_BUILD
run: |
echo "============================================================="
echo "Check Dymos code for NumPy 2.0 compatibility"
Expand All @@ -321,7 +323,7 @@ jobs:
ruff check . --select NPY201
- name: Perform linting with Ruff
if: ${{ matrix.NAME == 'baseline' }}
if: env.RUN_BUILD && matrix.NAME == 'baseline'
run: |
echo "============================================================="
echo "Lint Dymos code per settings in pyproject.toml"
Expand Down

0 comments on commit c1df410

Please sign in to comment.