From 3ca64483e4e10e10e421f5b5ab02535aff067eac Mon Sep 17 00:00:00 2001 From: Magnus Ulimoen Date: Fri, 1 Mar 2024 10:49:47 +0100 Subject: [PATCH] Upgrade workflows --- .github/workflows/ci.yml | 17 +++++++++++------ .github/workflows/codecov.yml | 11 ++++++++--- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d75427..f30bcde 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 9de5b03..6b0e0f4 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -1,5 +1,10 @@ name: codecov on: [push] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: CARGO_TERM_COLOR: always @@ -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 @@ -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 }}