From 0a6bbcceb5c55117a9933d711b4c06b719b0a792 Mon Sep 17 00:00:00 2001 From: Gabriele Bozzola Date: Mon, 22 Apr 2024 15:26:11 -0700 Subject: [PATCH] Add 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 00000000..521c5c93 --- /dev/null +++ b/.github/workflows/downstream.yml @@ -0,0 +1,38 @@ +name: Downstream +on: + push: + branches: + - main + tags: '*' + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + name: downstream ${{ matrix.package }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + package: + - 'ClimaAtmos.jl' + - 'ClimaLand.jl' + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v1 + with: + version: '1.10' + arch: 'x86' + - uses: julia-actions/cache@v1 + - uses: julia-actions/julia-buildpkg@v1 + - uses: actions/checkout@v4 + with: + repository: 'CliMA/${{ matrix.package }}' + path: ${{ matrix.package }} + - run: | + julia --project=${{ matrix.package }} -e 'using Pkg; Pkg.instantiate()' + julia --project=${{ matrix.package }} -e 'using Pkg; Pkg.devel(; path = ".")' + julia --project=${{ matrix.package }} -e 'using Pkg; Pkg.test()'