-
Notifications
You must be signed in to change notification settings - Fork 8
68 lines (62 loc) · 2.48 KB
/
Downstream.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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'
- 'ClimaTimesteppers.jl'
- 'KinematicDriver.jl'
- 'ClimaDiagnostics.jl'
- 'ClimaUtilities.jl'
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/${{ 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' && matrix.package != 'ClimaCoupler.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
- if: matrix.package == '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