From 538242e349609ca372ced2ab085f576167230d1f Mon Sep 17 00:00:00 2001 From: Julia Sloan Date: Thu, 27 Jun 2024 12:51:18 -0700 Subject: [PATCH] add ClimaCoupler downstream test --- .github/workflows/downstream.yml | 38 ++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/downstream.yml diff --git a/.github/workflows/downstream.yml b/.github/workflows/downstream.yml new file mode 100644 index 0000000000..4e2d999032 --- /dev/null +++ b/.github/workflows/downstream.yml @@ -0,0 +1,38 @@ +name: Downstream +on: + push: + branches: + - main + tags: '*' + pull_request: + +# Needed to allow julia-actions/cache to delete old caches that it has created +permissions: + actions: write + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + name: downstream ClimaCoupler.jl + runs-on: ubuntu-latest + strategy: + fail-fast: false + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 + with: + version: '1.10' + - uses: julia-actions/cache@v2 + - uses: julia-actions/julia-buildpkg@v1 + - uses: actions/checkout@v4 + with: + repository: 'CliMA/ClimaCoupler.jl' + path: ClimaCoupler.jl + - run: | + julia --color=yes --project=ClimaCoupler.jl/experiments/ClimaEarth/ -e 'using Pkg; Pkg.instantiate()' + julia --color=yes --project=ClimaCoupler.jl/experiments/ClimaEarth/ -e 'using Pkg; Pkg.develop(; path = ".")' + julia --color=yes --project=ClimaCoupler.jl/experiments/ClimaEarth/ ClimaCoupler.jl/experiments/ClimaEarth/run_amip.jl --config_file ClimaCoupler.jl/config/ci_configs/target_amip_albedo_function.yml --job_id target_amip_albedo_function