mirror of
https://github.com/georust/netcdf.git
synced 2025-12-08 19:25:14 +00:00
Upgrade workflows
This commit is contained in:
parent
f743886a46
commit
3ca64483e4
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
11
.github/workflows/codecov.yml
vendored
11
.github/workflows/codecov.yml
vendored
@ -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 }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user