Skip to content

Commit 06a5654

Browse files
Merge pull request #240 from CliMA/ck/update_GHA
Update GHA
2 parents 645bc0f + d9a68a0 commit 06a5654

File tree

7 files changed

+68
-55
lines changed

7 files changed

+68
-55
lines changed

.github/workflows/CodeCov.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v2.2.0
13+
- uses: actions/checkout@v4
1414

1515
- name: Set up Julia
16-
uses: julia-actions/setup-julia@latest
16+
uses: julia-actions/setup-julia@v1
1717
with:
18-
version: 1.9
18+
version: '1.10'
1919

2020
- name: Test with coverage
2121
env:
@@ -33,7 +33,7 @@ jobs:
3333
if: success()
3434

3535
- name: Submit coverage
36-
uses: codecov/codecov-action@v1.0.7
36+
uses: codecov/codecov-action@v2
3737
with:
3838
token: ${{secrets.CODECOV_TOKEN}}
3939
if: success()

.github/workflows/DocCleanup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout gh-pages branch
12-
uses: actions/checkout@v2
12+
uses: actions/checkout@v4
1313
with:
1414
ref: gh-pages
1515

.github/workflows/Documentation.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,22 @@ on:
77
tags: '*'
88
pull_request:
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
docbuild:
1216
runs-on: ubuntu-latest
1317
steps:
14-
- uses: actions/checkout@v2
15-
- uses: julia-actions/setup-julia@latest
18+
- uses: actions/checkout@v4
19+
- uses: julia-actions/setup-julia@v1
1620
with:
17-
version: 1.9
21+
version: '1.10'
1822
- name: Install dependencies
19-
run: julia --project=docs -e 'using Pkg; Pkg.instantiate(;verbose=true)'
23+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
2024
- name: Build and deploy
2125
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
24-
run: julia --project=docs docs/make.jl
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
27+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
28+
run: julia --project=docs/ docs/make.jl

.github/workflows/UnitTests.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: ci
2+
on:
3+
push:
4+
tags: '*'
5+
pull_request:
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
test:
13+
name: ci ${{ matrix.version }} - ${{ matrix.os }}
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
version:
19+
- '1.10'
20+
os:
21+
- ubuntu-latest
22+
- macOS-latest
23+
arch:
24+
- x64
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: julia-actions/setup-julia@v1
28+
with:
29+
version: ${{ matrix.version }}
30+
arch: ${{ matrix.arch }}
31+
- uses: actions/cache@v1
32+
env:
33+
cache-name: cache-artifacts
34+
with:
35+
path: ~/.julia/artifacts
36+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
37+
restore-keys: |
38+
${{ runner.os }}-test-${{ env.cache-name }}-
39+
${{ runner.os }}-test-
40+
${{ runner.os }}-
41+
- uses: julia-actions/julia-buildpkg@v1
42+
- uses: julia-actions/julia-runtest@v1
43+
- uses: julia-actions/julia-processcoverage@v1
44+
- uses: codecov/codecov-action@v1
45+
with:
46+
file: lcov.info
47+
token: ${{secrets.CODECOV_TOKEN}}

.github/workflows/julia_formatter.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
with:
1616
access_token: ${{ github.token }}
1717

18-
- uses: actions/checkout@v2.2.0
18+
- uses: actions/checkout@v4
1919

2020
- uses: dorny/[email protected]
2121
id: filter
@@ -24,10 +24,10 @@ jobs:
2424
julia_file_change:
2525
- added|modified: '**.jl'
2626
27-
- uses: julia-actions/setup-julia@latest
27+
- uses: julia-actions/setup-julia@v1
2828
if: steps.filter.outputs.julia_file_change == 'true'
2929
with:
30-
version: '1.9'
30+
version: '1.10'
3131

3232
- name: Apply JuliaFormatter
3333
if: steps.filter.outputs.julia_file_change == 'true'

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
[docs-dev-img]: https://img.shields.io/badge/docs-dev-blue.svg
1414
[docs-dev-url]: https://CliMA.github.io/ClimaTimeSteppers.jl/dev/
1515

16-
[gha-ci-img]: https://github.com/CliMA/ClimaTimeSteppers.jl/actions/workflows/UnitTests.yml/badge.svg
17-
[gha-ci-url]: https://github.com/CliMA/ClimaTimeSteppers.jl/actions/workflows/UnitTests.yml
16+
[gha-ci-img]: https://github.com/CliMA/ClimaTimeSteppers.jl/actions/workflows/ci.yml/badge.svg
17+
[gha-ci-url]: https://github.com/CliMA/ClimaTimeSteppers.jl/actions/workflows/ci.yml
1818

1919
[codecov-img]: https://codecov.io/gh/CliMA/ClimaTimeSteppers.jl/branch/main/graph/badge.svg
2020
[codecov-url]: https://codecov.io/gh/CliMA/ClimaTimeSteppers.jl

0 commit comments

Comments
 (0)