Skip to content

Commit 6b35438

Browse files
committed
try improve coverage
1 parent 9dacb05 commit 6b35438

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/coverage.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
env:
1414
CARGO_TERM_COLOR: always
1515
CODECOV_TOKEN: 86ae569f-70d3-4c7b-833e-6e8fc97ea9f3
16+
# If a test crashes, we want to know which one it was.
17+
RUST_TEST_THREADS: 1
18+
RUST_BACKTRACE: 1
1619

1720
jobs:
1821
coverage:
@@ -35,17 +38,24 @@ jobs:
3538
- name: Generate code coverage with all features
3639
run: bash -c "${{ matrix.cargo }} llvm-cov --all-features --release --all --lcov --output-path lcov-all-features.info"
3740
- name: Upload coverage to Codecov
38-
run: |
39-
bash <(curl -s https://codecov.io/bash) -f lcov.info -t ${{ env.CODECOV_TOKEN }}
40-
bash <(curl -s https://codecov.io/bash) -f lcov-all-features.info -t ${{ env.CODECOV_TOKEN }}
41+
run: ${{ matrix.upload }}
4142

4243
strategy:
4344
fail-fast: false
4445
matrix:
4546
include:
4647
- os: ubuntu-latest
4748
cargo: ulimit -Sl 512 && ulimit -Hl 512 && sudo -u runner /home/runner/.cargo/bin/cargo
49+
upload: |
50+
bash <(curl -s https://codecov.io/bash) -f lcov.info -t ${{ env.CODECOV_TOKEN }}
51+
bash <(curl -s https://codecov.io/bash) -f lcov-all-features.info -t ${{ env.CODECOV_TOKEN }}
4852
- os: macos-14
4953
cargo: ulimit -Sl 512 && ulimit -Hl 512 && sudo -u runner /Users/runner/.cargo/bin/cargo
54+
upload: |
55+
bash <(curl -s https://codecov.io/bash) -f lcov.info -t ${{ env.CODECOV_TOKEN }}
56+
bash <(curl -s https://codecov.io/bash) -f lcov-all-features.info -t ${{ env.CODECOV_TOKEN }}
5057
- os: windows-latest
5158
cargo: C://Users//runneradmin//.cargo//bin//cargo.exe
59+
upload: |
60+
powershell -Command "iwr -useb https://codecov.io/bash | iex" -f lcov.info -t ${{ env.CODECOV_TOKEN }}
61+
powershell -Command "iwr -useb https://codecov.io/bash | iex" -f lcov-all-features.info -t ${{ env.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)