-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add downstream tests for
ClimaAtmos.jl
and ClimaCoupler.jl
- Loading branch information
1 parent
04f2c09
commit 8040162
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ${{ matrix.package }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
package: | ||
- 'ClimaAtmos.jl' | ||
- 'ClimaCoupler.jl' | ||
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/${{ 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()' | ||