Skip to content

Commit

Permalink
Use matrix strategy in ClimaCoreMakie ci
Browse files Browse the repository at this point in the history
  • Loading branch information
charleskawczynski committed Jan 8, 2025
1 parent 2896140 commit 79cc3c6
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 10 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ClimaCoreMakie.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@ jobs:
lib-climacore-makie:
runs-on: ubuntu-20.04
timeout-minutes: 45
strategy:
matrix:
version: ['1.10', '1.11']
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1.11'
version: ${{ matrix.version }}
- uses: julia-actions/cache@v2
- run: sudo apt-get update && sudo apt-get install -y xorg-dev mesa-utils xvfb libgl1 freeglut3-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev
- name: Install Julia dependencies
Expand All @@ -38,7 +41,7 @@ jobs:
with:
name: climacore-makie-output
path: |
lib/ClimaCoreMakie/test/output
lib/ClimaCoreMakie/test/output/${{ matrix.version }}
- name: Fail after artifacts if tests failed
if: ${{ env.TESTS_SUCCESSFUL != 'true' }}
run: exit 1
7 changes: 5 additions & 2 deletions .github/workflows/ClimaCorePlots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@ jobs:
lib-climacore-plots:
runs-on: ubuntu-20.04
timeout-minutes: 30
strategy:
matrix:
version: ['1.10', '1.11']
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1.11'
version: ${{ matrix.version }}
- uses: julia-actions/cache@v2
- name: Install Julia dependencies
run: >
Expand All @@ -38,7 +41,7 @@ jobs:
with:
name: climacore-plots-output
path: |
lib/ClimaCorePlots/test/output
lib/ClimaCorePlots/test/output/${{ matrix.version }}
- name: Fail after artifacts if tests failed
if: ${{ env.TESTS_SUCCESSFUL != 'true' }}
run: exit 1
7 changes: 5 additions & 2 deletions .github/workflows/ClimaCoreSpectra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@ jobs:
lib-climacore-spectra:
runs-on: ubuntu-20.04
timeout-minutes: 30
strategy:
matrix:
version: ['1.10', '1.11']
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1.11'
version: ${{ matrix.version }}
- uses: julia-actions/cache@v2
- name: Install Julia dependencies
run: >
Expand All @@ -38,7 +41,7 @@ jobs:
with:
name: climacore-spectra-output
path: |
lib/ClimaCoreSpectra/test/output
lib/ClimaCoreSpectra/test/output/${{ matrix.version }}
- name: Fail after artifacts if tests failed
if: ${{ env.TESTS_SUCCESSFUL != 'true' }}
run: exit 1
7 changes: 5 additions & 2 deletions .github/workflows/ClimaCoreTempestRemap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@ jobs:
lib-climacore-tempestremap:
runs-on: ubuntu-20.04
timeout-minutes: 30
strategy:
matrix:
version: ['1.10', '1.11']
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1.11'
version: ${{ matrix.version }}
- uses: julia-actions/cache@v2
- name: Install Julia dependencies
run: >
Expand All @@ -38,7 +41,7 @@ jobs:
with:
name: climacore-tempestremap-output
path: |
lib/ClimaCoreTempestRemap/test/output
lib/ClimaCoreTempestRemap/test/output/${{ matrix.version }}
- name: Fail after artifacts if tests failed
if: ${{ env.TESTS_SUCCESSFUL != 'true' }}
run: exit 1
7 changes: 5 additions & 2 deletions .github/workflows/ClimaCoreVTK.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@ jobs:
lib-climacore-vtk:
runs-on: ubuntu-20.04
timeout-minutes: 30
strategy:
matrix:
version: ['1.10', '1.11']
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1.11'
version: ${{ matrix.version }}
- uses: julia-actions/cache@v2
- name: Install Paraview
run: |
Expand All @@ -46,7 +49,7 @@ jobs:
with:
name: climacore-vtk-output
path: |
lib/ClimaCoreVTK/test/output/*.png
lib/ClimaCoreVTK/test/output/${{ matrix.version }}/*.png
- name: Fail after artifacts if tests failed
if: ${{ env.TESTS_SUCCESSFUL != 'true' }}
run: exit 1

0 comments on commit 79cc3c6

Please sign in to comment.