Skip to content

Commit

Permalink
Avoid unnecessary steps in actions/testing_setup
Browse files Browse the repository at this point in the history
- We spent 1 minute build symmetric unnecessarily when checking the coupled
  APIs
  • Loading branch information
adcroft committed Jan 15, 2021
1 parent e29a12b commit eb0c03a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/actions/testing-setup/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
name: 'Build-.testing-prerequisites'
description: 'Build pre-requisites for .testing including FMS and a symmetric MOM6 executable'
inputs:
build_symmetric:
description: 'If true, will build the symmetric MOM6 executable'
required: false
default: 'true'
install_python:
description: 'If true, will install the local python env needed for .testing'
required: false
default: 'true'
runs:
using: 'composite'
steps:
Expand Down Expand Up @@ -51,15 +60,15 @@ runs:
run: |
echo "::group::Compile MOM6 in symmetric memory mode"
cd .testing
make build/symmetric/MOM6 -j
test ${{ inputs.build_symmetric }} == true && make build/symmetric/MOM6 -j
echo "::endgroup::"
- name: Install local python venv for generating input data
shell: bash
run: |
echo "::group::Create local python env for input data generation"
cd .testing
make work/local-env
test ${{ inputs.install_python }} == true && make work/local-env
echo "::endgroup::"
- name: Set flags
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/coupled-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
submodules: recursive

- uses: ./.github/actions/testing-setup
with:
build_symmetric: 'false'
install_python: 'false'

- name: Compile MOM6 for the GFDL coupled driver
shell: bash
Expand Down

0 comments on commit eb0c03a

Please sign in to comment.