Skip to content

Commit

Permalink
add ClimaCoupler downstream test
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasloan25 committed Oct 22, 2024
1 parent 8b9f647 commit e731b76
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/downstream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
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
matrix:
version:
- '1.10'
- '1.11'
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
- 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/test/runtests.jl

0 comments on commit e731b76

Please sign in to comment.