Skip to content

Commit

Permalink
Merge pull request #129 from magnusuMET/upgrade-github-actions
Browse files Browse the repository at this point in the history
Upgrade workflows
  • Loading branch information
magnusuMET authored Mar 1, 2024
2 parents f743886 + 3ca6448 commit 7a60a2f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ on:
schedule:
- cron: '0 0 15 * *'


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

env:
CARGO_TERM_COLOR: always

Expand All @@ -20,7 +25,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with: {submodules: true}
- name: Install netCDF
run: sudo apt-get update && sudo apt-get install libnetcdf-dev
Expand Down Expand Up @@ -54,7 +59,7 @@ jobs:
rust: nightly
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with: {submodules: false}

- name: Install netcdf
Expand Down Expand Up @@ -86,13 +91,13 @@ jobs:
shell: bash -l {0}
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with: {submodules: false}
- name: Install Rust (${{matrix.rust}})
uses: dtolnay/rust-toolchain@stable
with: {toolchain: '${{matrix.rust}}'}
- name: Install conda
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with: {auto-update-conda: false, activate-environment: testenv}
- name: Install netCDF
run: conda install -y -c ${{matrix.channel}} libnetcdf=4.8.1
Expand Down Expand Up @@ -120,7 +125,7 @@ jobs:
shell: bash -l {0}
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with: {submodules: true}
- name: Install Rust (${{matrix.rust}})
uses: dtolnay/rust-toolchain@stable
Expand All @@ -133,7 +138,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with: {submodules: true}
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: codecov
on: [push]

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

env:
CARGO_TERM_COLOR: always

Expand All @@ -9,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install netcdf
run: sudo apt-get install libnetcdf-dev
Expand All @@ -21,12 +26,12 @@ jobs:
uses: baptiste0928/cargo-install@30f432979e99f3ea66a8fa2eede53c07063995d8 # v2.1.0
with:
crate: cargo-tarpaulin
version: "0.26.1"
version: "0.27.3"

- name: Tarpaulin
run: cargo tarpaulin --verbose --out Xml --ignore-tests

- name: Upload to codecov
uses: codecov/codecov-action@v3.1.4
uses: codecov/codecov-action@v4.1.0
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 7a60a2f

Please sign in to comment.