Skip to content

Commit

Permalink
Make downgrade test dev inside test env
Browse files Browse the repository at this point in the history
Previously, ClimaCore was dev'd before entering the
test env.
  • Loading branch information
imreddyTeja committed Dec 17, 2024
1 parent 6f3788a commit 41d3dc4
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions .github/workflows/Downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,27 +46,10 @@ jobs:
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. The same applies for ClimaUtilities.
- if: (matrix.package != 'ClimaTimesteppers.jl' && matrix.package != 'ClimaCoupler.jl' &&
matrix.package != 'ClimaUtilities.jl')
- if: (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 == 'ClimaUtilities.jl'
run: |
julia --color=yes --project=ClimaUtilities.jl/test -e 'using Pkg; Pkg.instantiate()'
julia --color=yes --project=ClimaUtilities.jl/test -e 'using Pkg; Pkg.develop(; path = ".")'
julia --color=yes --project=ClimaUtilities.jl/test ClimaUtilities.jl/test/runtests.jl
julia --color=yes --project=${{ matrix.package }} -e 'using Pkg; Pkg.test(; julia_args = "-e using Pkg; Pkg.develop(; path = \".\")")'
- if: matrix.package == 'ClimaCoupler.jl'
run: |
Expand Down

0 comments on commit 41d3dc4

Please sign in to comment.