Skip to content

Commit

Permalink
Use TestEnv for downstream tests
Browse files Browse the repository at this point in the history
  • Loading branch information
imreddyTeja committed Dec 17, 2024
1 parent 340603b commit 16a7f37
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/Downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,14 @@ 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 test suite for ClimaUtilities depends on ClimaCore, not
# ClimaUtilities itself. If we dev-ed ClimaCore in ClimaUtilities,
# the aqua test would fail because we never use ClimaCore.
- if: (matrix.package != 'ClimaTimesteppers.jl' && matrix.package != 'ClimaCoupler.jl')
- if: (matrix.package != 'ClimaCoupler.jl' && matrix.package != 'ClimaUtilities.jl')
run: |
julia --color=yes -e 'using Pkg; Pkg.add("TestEnv")'
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
julia --color=yes --project=${{ matrix.package }} -e 'using TestEnv; TestEnv.activate(); using Pkg; Pkg.develop(; path = "."); include("${{ matrix.package }}/test/runtests.jl")'
- if: matrix.package == 'ClimaCoupler.jl'
run: |
Expand Down

0 comments on commit 16a7f37

Please sign in to comment.