Skip to content

Commit 339c2c4

Browse files
committed
Fix coverage report
1 parent 0837515 commit 339c2c4

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

.github/workflows/CI.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,19 @@ jobs:
5555
julia --color=yes --project=. coverage.jl
5656
shell: bash
5757
- name: Coveralls
58-
uses: coverallsapp/github-action@master
58+
uses: coverallsapp/github-action@v2
5959
with:
60-
github-token: ${{ secrets.GITHUB_TOKEN }}
61-
path-to-lcov: coverage-lcov.info
60+
parallel: true
61+
path-to-lcov: lcov.info
62+
flag-name: julia-${{ matrix.julia-version }}-${{ matrix.os }}-${{ github.event_name }}
63+
64+
coveralls:
65+
name: Indicate completion to coveralls
66+
runs-on: ubuntu-latest
67+
needs: test
68+
steps:
69+
- name: Finish
70+
uses: coverallsapp/github-action@v2
71+
with:
72+
parallel-finished: true
73+

coverage.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
using Coverage
22
# process '*.cov' files
33
coverage = process_folder() # defaults to src/; alternatively, supply the folder name as argument
4+
push!(coverage, process_folder("ext")...)
45

5-
LCOV.writefile("coverage-lcov.info", coverage)
6+
LCOV.writefile("lcov.info", coverage)
67

78
# process '*.info' files
89
coverage = merge_coverage_counts(
910
coverage,
1011
filter!(
11-
let prefixes = (joinpath(pwd(), "src", ""),)
12+
let prefixes = (joinpath(pwd(), "src", ""), joinpath(pwd(), "ext", ""))
1213
c -> any(p -> startswith(c.filename, p), prefixes)
1314
end,
1415
LCOV.readfolder("test"),

0 commit comments

Comments
 (0)