Clip effective radius between the values from the lookup table #1144
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
name: OS Unit Tests | |
on: | |
pull_request: | |
push: | |
tags: '*' | |
jobs: | |
test-os: | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
# Workaround for OSX MPICH issue: | |
# https://github.com/pmodels/mpich/issues/4710 | |
env: | |
MPICH_INTERFACE_HOSTNAME: "localhost" | |
CLIMATEMACHINE_TEST_RUNMPI_LOCALHOST: "true" | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Set up Julia | |
uses: julia-actions/setup-julia@v1 | |
with: | |
version: '1.10' | |
# https://discourse.julialang.org/t/recommendation-cache-julia-artifacts-in-ci-services/35484 | |
- name: Cache artifacts | |
uses: actions/cache@v1 | |
env: | |
cache-name: cache-artifacts | |
with: | |
path: ~/.julia/artifacts | |
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} | |
restore-keys: | | |
${{ runner.os }}-test-${{ env.cache-name }}- | |
${{ runner.os }}-test- | |
${{ runner.os }}- | |
- name: Install Project Packages | |
run: | | |
julia --project=@. -e 'using Pkg; Pkg.instantiate()' | |
- name: Run Unit Tests | |
run: | | |
julia --project=@. -e 'using Pkg; Pkg.test()' |