From c890cb22426626208000805c3d04083b38f8c549 Mon Sep 17 00:00:00 2001 From: epwalsh Date: Sat, 19 Sep 2020 09:57:19 -0700 Subject: [PATCH 1/4] try codecov --- .github/workflows/rust.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index eac4254..5e4a9ad 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -109,6 +109,12 @@ jobs: command: test args: --doc --all-features + - name: Code coverage + uses: actions-rs/tarpaulin@v0.1 + if: matrix.os == 'ubuntu-latest' + with: + args: --all-features + publish: name: Publish needs: [build] From b9e709706010c4ce4f756f9b865773ba46ff39b4 Mon Sep 17 00:00:00 2001 From: epwalsh Date: Sat, 19 Sep 2020 09:59:24 -0700 Subject: [PATCH 2/4] add upload step --- .github/workflows/rust.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 5e4a9ad..7e12582 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -109,12 +109,15 @@ jobs: command: test args: --doc --all-features - - name: Code coverage + - name: Calculate test coverage uses: actions-rs/tarpaulin@v0.1 if: matrix.os == 'ubuntu-latest' with: args: --all-features + - name: Upload to codecov.io + uses: codecov/codecov-action@v1 + publish: name: Publish needs: [build] From 63610964c5637d39a37dd4676ab6006099c631cc Mon Sep 17 00:00:00 2001 From: epwalsh Date: Sat, 19 Sep 2020 09:59:58 -0700 Subject: [PATCH 3/4] fix --- .github/workflows/rust.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 7e12582..054be16 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -116,6 +116,7 @@ jobs: args: --all-features - name: Upload to codecov.io + if: matrix.os == 'ubuntu-latest' uses: codecov/codecov-action@v1 publish: From a0a6ba4855e4defa0d1f0f9406d9ba46645ebd96 Mon Sep 17 00:00:00 2001 From: epwalsh Date: Sat, 19 Sep 2020 10:37:59 -0700 Subject: [PATCH 4/4] update --- .github/workflows/rust.yml | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 054be16..9e44716 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -88,32 +88,11 @@ jobs: command: build args: --all-features - - name: Run unit tests - if: always() - uses: actions-rs/cargo@v1 - with: - command: test - args: --lib --all-features - - - name: Run integration tests - if: always() - uses: actions-rs/cargo@v1 - with: - command: test - args: --test cli - - - name: Run doc tests - if: always() - uses: actions-rs/cargo@v1 - with: - command: test - args: --doc --all-features - - name: Calculate test coverage uses: actions-rs/tarpaulin@v0.1 if: matrix.os == 'ubuntu-latest' with: - args: --all-features + args: --all-features --tests --doc --ignore-tests - name: Upload to codecov.io if: matrix.os == 'ubuntu-latest'