Skip to content

Commit

Permalink
Merge pull request #226 from CliMA/ck/downstream
Browse files Browse the repository at this point in the history
Add downstream tests
  • Loading branch information
charleskawczynski authored Sep 25, 2024
2 parents 06416e9 + 6140f93 commit 1d45676
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/Downstream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
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'
- 'ClimaDiagnostics.jl'
- 'ClimaLand.jl'
- 'KinematicDriver.jl'
- 'ClimaDiagnostics.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 }}

# The test suite for ClimaTimesteppers depends on ClimaCore, not
# ClimaTimesteppers itself. If we dev-ed ClimaCore in ClimaTimesteppers,
# the aqua test would fail because we never use ClimaCore.
- if: matrix.package != 'ClimaTimesteppers.jl'
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()'
- if: matrix.package == 'ClimaTimesteppers.jl'
run: |
julia --color=yes --project=ClimaTimesteppers.jl/test -e 'using Pkg; Pkg.instantiate()'
julia --color=yes --project=ClimaTimesteppers.jl/test -e 'using Pkg; Pkg.develop(; path = ".")'
julia --color=yes --project=ClimaTimesteppers.jl/test ClimaTimesteppers.jl/test/runtests.jl

0 comments on commit 1d45676

Please sign in to comment.