Skip to content

Commit ea976a6

Browse files
authored
Merge pull request #1852 from CliMA/gb/update
Update compats and github workflows
2 parents 6bf8103 + 26ce251 commit ea976a6

11 files changed

+76
-72
lines changed

.github/workflows/ClimaCoreMakie.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@ name: ClimaCoreMakie CI
22
on:
33
pull_request:
44

5+
# Needed to allow julia-actions/cache to delete old caches that it has created
6+
permissions:
7+
actions: write
8+
contents: read
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
514
jobs:
615
lib-climacore-makie:
716
runs-on: ubuntu-20.04
817
timeout-minutes: 45
918
steps:
1019
- name: Checkout
1120
uses: actions/checkout@v4
12-
- uses: julia-actions/setup-julia@latest
21+
- uses: julia-actions/setup-julia@v2
1322
with:
1423
version: '1.10'
15-
- uses: actions/cache@v3
16-
env:
17-
cache-name: cache-artifacts
18-
with:
19-
path: ~/.julia/artifacts
20-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
21-
restore-keys: |
22-
${{ runner.os }}-test-${{ env.cache-name }}-
23-
${{ runner.os }}-test-
24-
${{ runner.os }}-
24+
- uses: julia-actions/cache@v2
2525
- 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
2626
- name: Install Julia dependencies
2727
run: >
@@ -34,7 +34,7 @@ jobs:
3434
DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --project=monorepo -e 'using Pkg; Pkg.test("ClimaCoreMakie")'
3535
&& echo "TESTS_SUCCESSFUL=true" >> $GITHUB_ENV
3636
- name: Upload test Artifacts
37-
uses: actions/upload-artifact@v2
37+
uses: actions/upload-artifact@v4
3838
with:
3939
name: climacore-makie-output
4040
path: |

.github/workflows/ClimaCorePlots.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@ name: ClimaCorePlots CI
22
on:
33
pull_request:
44

5+
# Needed to allow julia-actions/cache to delete old caches that it has created
6+
permissions:
7+
actions: write
8+
contents: read
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
514
jobs:
615
lib-climacore-plots:
716
runs-on: ubuntu-20.04
817
timeout-minutes: 30
918
steps:
1019
- name: Checkout
1120
uses: actions/checkout@v4
12-
- uses: julia-actions/setup-julia@latest
21+
- uses: julia-actions/setup-julia@v2
1322
with:
1423
version: '1.10'
15-
- uses: actions/cache@v3
16-
env:
17-
cache-name: cache-artifacts
18-
with:
19-
path: ~/.julia/artifacts
20-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
21-
restore-keys: |
22-
${{ runner.os }}-test-${{ env.cache-name }}-
23-
${{ runner.os }}-test-
24-
${{ runner.os }}-
24+
- uses: julia-actions/cache@v2
2525
- name: Install Julia dependencies
2626
run: >
2727
julia --project=monorepo -e 'using Pkg; Pkg.develop(path="$(pwd())"); Pkg.develop(path="$(pwd())/lib/ClimaCorePlots")'
@@ -34,7 +34,7 @@ jobs:
3434
julia --project=monorepo -e 'using Pkg; Pkg.test("ClimaCorePlots")'
3535
&& echo "TESTS_SUCCESSFUL=true" >> $GITHUB_ENV
3636
- name: Upload test Artifacts
37-
uses: actions/upload-artifact@v2
37+
uses: actions/upload-artifact@v4
3838
with:
3939
name: climacore-plots-output
4040
path: |

.github/workflows/ClimaCoreSpectra.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@ name: ClimaCoreSpectra CI
22
on:
33
pull_request:
44

5+
# Needed to allow julia-actions/cache to delete old caches that it has created
6+
permissions:
7+
actions: write
8+
contents: read
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
514
jobs:
615
lib-climacore-spectra:
716
runs-on: ubuntu-20.04
817
timeout-minutes: 30
918
steps:
1019
- name: Checkout
1120
uses: actions/checkout@v4
12-
- uses: julia-actions/setup-julia@latest
21+
- uses: julia-actions/setup-julia@v2
1322
with:
1423
version: '1.10'
15-
- uses: actions/cache@v3
16-
env:
17-
cache-name: cache-artifacts
18-
with:
19-
path: ~/.julia/artifacts
20-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
21-
restore-keys: |
22-
${{ runner.os }}-test-${{ env.cache-name }}-
23-
${{ runner.os }}-test-
24-
${{ runner.os }}-
24+
- uses: julia-actions/cache@v2
2525
- name: Install Julia dependencies
2626
run: >
2727
julia --project=monorepo -e 'using Pkg; Pkg.develop(path="$(pwd())"); Pkg.develop(path="$(pwd())/lib/ClimaCoreSpectra")'
@@ -34,7 +34,7 @@ jobs:
3434
julia --project=monorepo -e 'using Pkg; Pkg.test("ClimaCoreSpectra")'
3535
&& echo "TESTS_SUCCESSFUL=true" >> $GITHUB_ENV
3636
- name: Upload test Artifacts
37-
uses: actions/upload-artifact@v2
37+
uses: actions/upload-artifact@v4
3838
with:
3939
name: climacore-spectra-output
4040
path: |

.github/workflows/ClimaCoreTempestRemap.yml

+13-12
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,27 @@ name: ClimaCoreTempestRemap CI
22
on:
33
pull_request:
44

5+
# Needed to allow julia-actions/cache to delete old caches that it has created
6+
permissions:
7+
actions: write
8+
contents: read
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
515
jobs:
616
lib-climacore-tempestremap:
717
runs-on: ubuntu-20.04
818
timeout-minutes: 30
919
steps:
1020
- name: Checkout
1121
uses: actions/checkout@v4
12-
- uses: julia-actions/setup-julia@latest
22+
- uses: julia-actions/setup-julia@v2
1323
with:
1424
version: '1.10'
15-
- uses: actions/cache@v3
16-
env:
17-
cache-name: cache-artifacts
18-
with:
19-
path: ~/.julia/artifacts
20-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
21-
restore-keys: |
22-
${{ runner.os }}-test-${{ env.cache-name }}-
23-
${{ runner.os }}-test-
24-
${{ runner.os }}-
25+
- uses: julia-actions/cache@v2
2526
- name: Install Julia dependencies
2627
run: >
2728
julia --project=monorepo -e 'using Pkg; Pkg.develop(path="$(pwd())"); Pkg.develop(path="$(pwd())/lib/ClimaCoreTempestRemap")'
@@ -33,7 +34,7 @@ jobs:
3334
julia --project=monorepo -e 'using Pkg; Pkg.test("ClimaCoreTempestRemap")'
3435
&& echo "TESTS_SUCCESSFUL=true" >> $GITHUB_ENV
3536
- name: Upload test Artifacts
36-
uses: actions/upload-artifact@v2
37+
uses: actions/upload-artifact@v4
3738
with:
3839
name: climacore-tempestremap-output
3940
path: |

.github/workflows/ClimaCoreVTK.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@ name: ClimaCoreVTK CI
22
on:
33
pull_request:
44

5+
# Needed to allow julia-actions/cache to delete old caches that it has created
6+
permissions:
7+
actions: write
8+
contents: read
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
514
jobs:
615
lib-climacore-vtk:
716
runs-on: ubuntu-20.04
817
timeout-minutes: 30
918
steps:
1019
- name: Checkout
1120
uses: actions/checkout@v4
12-
- uses: julia-actions/setup-julia@latest
21+
- uses: julia-actions/setup-julia@v2
1322
with:
1423
version: '1.10'
15-
- uses: actions/cache@v3
16-
env:
17-
cache-name: cache-artifacts
18-
with:
19-
path: ~/.julia/artifacts
20-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
21-
restore-keys: |
22-
${{ runner.os }}-test-${{ env.cache-name }}-
23-
${{ runner.os }}-test-
24-
${{ runner.os }}-
24+
- uses: julia-actions/cache@v2
2525
- name: Install Paraview
2626
run: |
2727
sudo apt-get update && sudo apt-get -y install paraview python3-paraview
@@ -42,7 +42,7 @@ jobs:
4242
done
4343
continue-on-error: true
4444
- name: Upload test Artifacts
45-
uses: actions/upload-artifact@v2
45+
uses: actions/upload-artifact@v4
4646
with:
4747
name: climacore-vtk-output
4848
path: |

.github/workflows/Downstream.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
tags: '*'
77
pull_request:
88

9+
# Needed to allow julia-actions/cache to delete old caches that it has created
10+
permissions:
11+
actions: write
12+
contents: read
13+
914
concurrency:
1015
group: ${{ github.workflow }}-${{ github.ref }}
1116
cancel-in-progress: true
@@ -25,7 +30,7 @@ jobs:
2530
- 'ClimaTimeSteppers.jl'
2631
steps:
2732
- uses: actions/checkout@v4
28-
- uses: julia-actions/setup-julia@v1
33+
- uses: julia-actions/setup-julia@v2
2934
with:
3035
version: '1.10'
3136
- uses: julia-actions/cache@v2

.github/workflows/UnitTests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ jobs:
3636
steps:
3737
- name: Checkout
3838
uses: actions/checkout@v4
39-
- uses: julia-actions/setup-julia@latest
39+
- uses: julia-actions/setup-julia@v2
4040
with:
4141
version: ${{ matrix.julia-version }}
42-
- uses: julia-actions/cache@v1
42+
- uses: julia-actions/cache@v2
4343
- uses: julia-actions/julia-buildpkg@latest
4444
- uses: julia-actions/julia-runtest@latest
4545
- uses: julia-actions/julia-processcoverage@latest

.github/workflows/docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-20.04
99
steps:
1010
- uses: actions/checkout@v4
11-
- uses: julia-actions/setup-julia@latest
11+
- uses: julia-actions/setup-julia@v2
1212
with:
1313
version: '1.10'
1414
- name: Install dependencies

Project.toml

+2-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ PkgVersion = "eebad327-c553-4316-9ea0-9fa01ccd7688"
2525
RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd"
2626
RootSolvers = "7181ea78-2dcb-4de3-ab41-2b8ab5a31e74"
2727
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
28-
Static = "aedffcd0-7271-4cad-89d0-dc628f76c6d3"
2928
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
3029
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
3130
Unrolled = "9602ed7d-8fef-5bc8-8597-8f21381861e8"
@@ -45,8 +44,8 @@ ArgParse = "1"
4544
AssociatedLegendrePolynomials = "1"
4645
BandedMatrices = "0.17, 1"
4746
BenchmarkTools = "1"
48-
BlockArrays = "0.16"
49-
ClimaComms = "0.5.7, 0.6"
47+
BlockArrays = "0.16, 1"
48+
ClimaComms = "0.6"
5049
Combinatorics = "1"
5150
CountFlops = "0.1"
5251
CubedSphere = "0.2"
@@ -77,7 +76,6 @@ RecursiveArrayTools = "2, 3"
7776
RootSolvers = "0.3, 0.4"
7877
SafeTestsets = "0.1"
7978
SparseArrays = "1"
80-
Static = "0.4, 0.5, 0.6, 0.7, 0.8"
8179
StaticArrays = "1"
8280
Statistics = "1"
8381
StatsBase = "0.34"

src/Fields/compat_diffeq.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import RecursiveArrayTools, Static
1+
import RecursiveArrayTools
22

33
# for compatibility with OrdinaryDiffEq
44
# Based on ApproxFun definitions

test/Spaces/opt_spaces.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ end
3535
if ClimaComms.device(context) isa ClimaComms.CUDADevice
3636
test_n_failures(86, TU.PointSpace, context)
3737
test_n_failures(144, TU.SpectralElementSpace1D, context)
38-
test_n_failures(1119, TU.SpectralElementSpace2D, context)
38+
test_n_failures(1120, TU.SpectralElementSpace2D, context)
3939
test_n_failures(123, TU.ColumnCenterFiniteDifferenceSpace, context)
4040
test_n_failures(123, TU.ColumnFaceFiniteDifferenceSpace, context)
4141
test_n_failures(1125, TU.SphereSpectralElementSpace, context)
@@ -44,10 +44,10 @@ end
4444
else
4545
test_n_failures(0, TU.PointSpace, context)
4646
test_n_failures(137, TU.SpectralElementSpace1D, context)
47-
test_n_failures(287, TU.SpectralElementSpace2D, context)
47+
test_n_failures(295, TU.SpectralElementSpace2D, context)
4848
test_n_failures(118, TU.ColumnCenterFiniteDifferenceSpace, context)
4949
test_n_failures(118, TU.ColumnFaceFiniteDifferenceSpace, context)
50-
test_n_failures(293, TU.SphereSpectralElementSpace, context)
50+
test_n_failures(301, TU.SphereSpectralElementSpace, context)
5151
test_n_failures(321, TU.CenterExtrudedFiniteDifferenceSpace, context)
5252
test_n_failures(321, TU.FaceExtrudedFiniteDifferenceSpace, context)
5353

0 commit comments

Comments
 (0)