Skip to content

Commit

Permalink
Add downstream tests
Browse files Browse the repository at this point in the history
Lots of packages depend on ClimaCore and it is hard to predict the
ripple effects of small changes. This commit adds tests for the main
downstream repositories that depend on ClimaCore. Passing these tests
are not required to merge PRs, but can be a valuable piece of information.
  • Loading branch information
Sbozzolo committed Jun 4, 2024
1 parent 7038214 commit 5096dac
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/Downstream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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'
- 'ClimaCoupler.jl'
- 'ClimaDiagnostics.jl'
- 'ClimaLand.jl'
- 'ClimaTimeSteppers.jl'
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: '1.10'
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- uses: actions/checkout@v4
with:
repository: 'CliMA/${{ matrix.package }}'
path: ${{ matrix.package }}
- run: |
julia --color=yes --project=${{ matrix.package }} -e 'using Pkg; Pkg.instantiate()'
julia --color=yes --project=${{ matrix.package }} -e 'using Pkg; Pkg.develop(; path = ".")'
julia --color=yes --project=${{ matrix.package }} -e 'using Pkg; Pkg.test()'

0 comments on commit 5096dac

Please sign in to comment.