Skip to content

Commit

Permalink
Merge pull request #830 from CliMA/gb/leaderboard
Browse files Browse the repository at this point in the history
Update Github workflows
  • Loading branch information
Sbozzolo authored May 30, 2024
2 parents 891f46d + f9ac640 commit 0c9d127
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 24 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/DocCleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ on:
pull_request:
types: [closed]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
doc-preview-cleanup:
runs-on: ubuntu-latest
steps:
- name: Checkout gh-pages branch
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: gh-pages

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ on:
tags: '*'
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
docbuild:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@latest
with:
version: '1.10'
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/JuliaFormatter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,18 @@ on:
tags: '*'
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
format:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- uses: actions/[email protected]
- uses: actions/checkout@v4

- uses: dorny/paths-filter@v2.9.1
- uses: dorny/paths-filter@v3.0.2
id: filter
with:
filters: |
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ on:
tags: '*'
pull_request:

# Needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: ci ${{ matrix.version }} - ${{ matrix.os }}
Expand All @@ -20,21 +29,12 @@ jobs:
arch:
- x64
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- 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 }}-
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1

# Needed to download its unique artifacts
Expand All @@ -48,6 +48,6 @@ jobs:
file: lcov.info
- name: Submit coverage
if: ${{ matrix.version == '1.10' }} && ${{ matrix.os == 'ubuntu-latest' }}
uses: codecov/codecov-action@v1.0.7
uses: codecov/codecov-action@v4
with:
token: ${{secrets.CODECOV_TOKEN}}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Coupler Specific Shared Development
[docs-bld-img]: https://github.com/CliMA/ClimaCoupler.jl/workflows/Documentation/badge.svg
[docs-bld-url]: https://github.com/CliMA/ClimaCoupler.jl/actions?query=workflow%3ADocumentation

[unit-tests-img]: https://github.com/CliMA/ClimaCoupler.jl/workflows/Unit%20Tests/badge.svg
[unit-tests-url]: https://github.com/CliMA/ClimaCoupler.jl/actions?query=workflow%3A%22Unit+Tests%22
[unit-tests-img]: https://github.com/CliMA/ClimaCoupler.jl/actions/workflows/ci.yml/badge.svg
[unit-tests-url]: https://github.com/CliMA/ClimaCoupler.jl/actions?query=workflow%3Aci

[codecov-img]: https://codecov.io/gh/CliMA/ClimaCoupler.jl/branch/main/graph/badge.svg
[codecov-url]: https://codecov.io/gh/CliMA/ClimaCoupler.jl
Expand Down

0 comments on commit 0c9d127

Please sign in to comment.