Skip to content

Commit dc37d3d

Browse files
authored
Merge pull request RustPython#3649 from fanninpm/fix-cron-coverage
Fix coverage cronjob
2 parents f26c0ba + 856a6db commit dc37d3d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/cron-ci.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v2
1717
- uses: actions-rs/toolchain@v1
18+
with:
19+
components: llvm-tools-preview
1820
- run: sudo apt-get update && sudo apt-get -y install lcov
1921
- uses: actions-rs/cargo@v1
2022
with:
@@ -43,10 +45,11 @@ jobs:
4345
local tool=$1; shift; "$(rustc --print target-libdir)/../bin/llvm-$tool" "$@"
4446
}
4547
rusttool profdata merge extra_tests/snippet-*.profraw regrtest.profraw --output codecov.profdata
46-
rusttool cov export --instr-profile codecov.profdata target/release/rustpython --format lcov >codecov.lcov
47-
lcov -r codecov.lcov '/*' -o codecov.lcov
48+
rusttool cov export --instr-profile codecov.profdata target/release/rustpython --format lcov > codecov_tmp.lcov
49+
lcov -e codecov_tmp.lcov "$PWD"/'*' -o codecov_tmp2.lcov
50+
lcov -r codecov_tmp2.lcov "$PWD"/target/'*' -o codecov.lcov # remove LALRPOP-generated parser
4851
- name: upload to Codecov
49-
uses: codecov/codecov-action@v1
52+
uses: codecov/codecov-action@v3
5053
with:
5154
file: ./codecov.lcov
5255

0 commit comments

Comments
 (0)