Skip to content

Commit 5fa37b2

Browse files
Use matrix strategy in ClimaCoreMakie ci
1 parent b3e5db2 commit 5fa37b2

File tree

5 files changed

+25
-10
lines changed

5 files changed

+25
-10
lines changed

.github/workflows/ClimaCoreMakie.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,15 @@ jobs:
1515
lib-climacore-makie:
1616
runs-on: ubuntu-20.04
1717
timeout-minutes: 45
18+
strategy:
19+
matrix:
20+
version: ['1.10', '1.11']
1821
steps:
1922
- name: Checkout
2023
uses: actions/checkout@v4
2124
- uses: julia-actions/setup-julia@v2
2225
with:
23-
version: '1.11'
26+
version: ${{ matrix.version }}
2427
- uses: julia-actions/cache@v2
2528
- 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
2629
- name: Install Julia dependencies
@@ -38,7 +41,7 @@ jobs:
3841
with:
3942
name: climacore-makie-output
4043
path: |
41-
lib/ClimaCoreMakie/test/output
44+
lib/ClimaCoreMakie/test/output/${{ matrix.version }}
4245
- name: Fail after artifacts if tests failed
4346
if: ${{ env.TESTS_SUCCESSFUL != 'true' }}
4447
run: exit 1

.github/workflows/ClimaCorePlots.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,15 @@ jobs:
1515
lib-climacore-plots:
1616
runs-on: ubuntu-20.04
1717
timeout-minutes: 30
18+
strategy:
19+
matrix:
20+
version: ['1.10', '1.11']
1821
steps:
1922
- name: Checkout
2023
uses: actions/checkout@v4
2124
- uses: julia-actions/setup-julia@v2
2225
with:
23-
version: '1.11'
26+
version: ${{ matrix.version }}
2427
- uses: julia-actions/cache@v2
2528
- name: Install Julia dependencies
2629
run: >
@@ -38,7 +41,7 @@ jobs:
3841
with:
3942
name: climacore-plots-output
4043
path: |
41-
lib/ClimaCorePlots/test/output
44+
lib/ClimaCorePlots/test/output/${{ matrix.version }}
4245
- name: Fail after artifacts if tests failed
4346
if: ${{ env.TESTS_SUCCESSFUL != 'true' }}
4447
run: exit 1

.github/workflows/ClimaCoreSpectra.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,15 @@ jobs:
1515
lib-climacore-spectra:
1616
runs-on: ubuntu-20.04
1717
timeout-minutes: 30
18+
strategy:
19+
matrix:
20+
version: ['1.10', '1.11']
1821
steps:
1922
- name: Checkout
2023
uses: actions/checkout@v4
2124
- uses: julia-actions/setup-julia@v2
2225
with:
23-
version: '1.11'
26+
version: ${{ matrix.version }}
2427
- uses: julia-actions/cache@v2
2528
- name: Install Julia dependencies
2629
run: >
@@ -38,7 +41,7 @@ jobs:
3841
with:
3942
name: climacore-spectra-output
4043
path: |
41-
lib/ClimaCoreSpectra/test/output
44+
lib/ClimaCoreSpectra/test/output/${{ matrix.version }}
4245
- name: Fail after artifacts if tests failed
4346
if: ${{ env.TESTS_SUCCESSFUL != 'true' }}
4447
run: exit 1

.github/workflows/ClimaCoreTempestRemap.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,15 @@ jobs:
1616
lib-climacore-tempestremap:
1717
runs-on: ubuntu-20.04
1818
timeout-minutes: 30
19+
strategy:
20+
matrix:
21+
version: ['1.10', '1.11']
1922
steps:
2023
- name: Checkout
2124
uses: actions/checkout@v4
2225
- uses: julia-actions/setup-julia@v2
2326
with:
24-
version: '1.11'
27+
version: ${{ matrix.version }}
2528
- uses: julia-actions/cache@v2
2629
- name: Install Julia dependencies
2730
run: >
@@ -38,7 +41,7 @@ jobs:
3841
with:
3942
name: climacore-tempestremap-output
4043
path: |
41-
lib/ClimaCoreTempestRemap/test/output
44+
lib/ClimaCoreTempestRemap/test/output/${{ matrix.version }}
4245
- name: Fail after artifacts if tests failed
4346
if: ${{ env.TESTS_SUCCESSFUL != 'true' }}
4447
run: exit 1

.github/workflows/ClimaCoreVTK.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,15 @@ jobs:
1515
lib-climacore-vtk:
1616
runs-on: ubuntu-20.04
1717
timeout-minutes: 30
18+
strategy:
19+
matrix:
20+
version: ['1.10', '1.11']
1821
steps:
1922
- name: Checkout
2023
uses: actions/checkout@v4
2124
- uses: julia-actions/setup-julia@v2
2225
with:
23-
version: '1.11'
26+
version: ${{ matrix.version }}
2427
- uses: julia-actions/cache@v2
2528
- name: Install Paraview
2629
run: |
@@ -46,7 +49,7 @@ jobs:
4649
with:
4750
name: climacore-vtk-output
4851
path: |
49-
lib/ClimaCoreVTK/test/output/*.png
52+
lib/ClimaCoreVTK/test/output/${{ matrix.version }}/*.png
5053
- name: Fail after artifacts if tests failed
5154
if: ${{ env.TESTS_SUCCESSFUL != 'true' }}
5255
run: exit 1

0 commit comments

Comments
 (0)