From c0fe5f1b34537911d72745be8be60359aa23e25b Mon Sep 17 00:00:00 2001 From: Stanislav Tkach Date: Sat, 9 Mar 2024 22:01:37 +0100 Subject: [PATCH] Fix coverage --- .github/workflows/coverage.yml | 26 ++++++++------------------ .github/workflows/version.yml | 2 +- README.md | 2 +- 3 files changed, 10 insertions(+), 20 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 01710ed..5081bfc 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -6,30 +6,20 @@ jobs: check: name: Tarpaulin runs-on: ubuntu-latest + container: + image: xd009642/tarpaulin:develop-nightly + options: --security-opt seccomp=unconfined steps: - name: Checkout uses: actions/checkout@v3 - - name: Install rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - - - name: Run cargo-tarpaulin - uses: actions-rs/tarpaulin@v0.1 - with: - version: latest - args: '-- --test-threads 1' + - name: Generate code coverage + run: | + cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out xml - name: Upload to codecov.io - uses: codecov/codecov-action@v1.0.2 + uses: codecov/codecov-action@v4 with: token: ${{secrets.CODECOV_TOKEN}} - - - name: Archive code coverage results - uses: actions/upload-artifact@v1 - with: - name: code-coverage-report - path: cobertura.xml + fail_ci_if_error: true diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index 35488f2..dd19bc4 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -19,7 +19,7 @@ jobs: with: # Feel free to bump this version if you need features of newer Rust. # Sync with badge in README.md - toolchain: 1.66.0 + toolchain: 1.70.0 profile: minimal override: true diff --git a/README.md b/README.md index cc04da6..00f6b22 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ **Project details:** [![LoC](https://tokei.rs/b1/github/stanislav-tkach/os_info)](https://github.com/stanislav-tkach/os_info) -![Rust 1.66+ required](https://img.shields.io/badge/rust-1.41+-blue.svg?label=Required%20Rust) +![Rust 1.70+ required](https://img.shields.io/badge/rust-1.41+-blue.svg?label=Required%20Rust) ## Overview