Browse Source

BUILD: In code coverage action, run each literate file in own module.

pull/563/head
Evan Patterson 3 weeks ago
committed by James
parent
commit
976e232c1c
  1. 2
      .github/workflows/codecov.yml

2
.github/workflows/codecov.yml

@ -17,7 +17,7 @@ jobs:
sudo apt-get install texlive-latex-base texlive-latex-extra texlive-binaries texlive-pictures texlive-luatex
- uses: julia-actions/julia-buildpkg@latest
- name: "Run exhaustive tests"
run: julia --project --code-coverage=user -e 'using Pkg; Pkg.activate("test"); Pkg.instantiate(); pkg"dev ."; include("test/runtests.jl"); Pkg.activate("docs"); Pkg.instantiate(); pkg"dev ."; map(x->map(y->include(joinpath(x[1],y)), x[3]), walkdir("docs/literate"));'
run: julia --project --code-coverage=user -e 'using Pkg; Pkg.activate("test"); Pkg.instantiate(); pkg"dev ."; include("test/runtests.jl"); Pkg.activate("docs"); Pkg.instantiate(); pkg"dev ."; foreach(((root, _, files),) -> foreach(file -> eval(:(module $(Symbol(first(splitext(file)))) include($(joinpath(root,file))) end)), files), walkdir("docs/literate"))'
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:

Loading…
Cancel
Save