From afa967d8d7ce3a2d16550d4fdcf0b87bba2b98ca Mon Sep 17 00:00:00 2001 From: Ulrik Sverdrup Date: Sat, 24 Aug 2024 13:10:04 +0200 Subject: [PATCH 1/2] ci: Upgrade to codecov-action@v4 and use token Used token from codecov.io (for rust-ndarray org). --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5200dcf..ba3f49f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -92,6 +92,8 @@ jobs: - name: Generate code coverage run: cargo tarpaulin --verbose --all-features --workspace --timeout 120 --out Xml - name: Upload to codecov.io - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: fail_ci_if_error: true From 99e345bd3c271a00726c304c9b5e29c612dfbc99 Mon Sep 17 00:00:00 2001 From: Ulrik Sverdrup Date: Sat, 24 Aug 2024 13:14:26 +0200 Subject: [PATCH 2/2] ci: Cache the install of tarpaulin --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ba3f49f..b0a6ea4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,7 +88,9 @@ jobs: with: toolchain: ${{ matrix.rust }} - name: Install tarpaulin - run: cargo install cargo-tarpaulin -f + uses: taiki-e/cache-cargo-install-action@v2 + with: + tool: cargo-tarpaulin - name: Generate code coverage run: cargo tarpaulin --verbose --all-features --workspace --timeout 120 --out Xml - name: Upload to codecov.io