Skip to content

Commit 7c86b31

Browse files
authored
try make codecov look at results from all test groups (#907)
* try make codecov look at results from all test groups * Update test.yml * Update test.yml * Create .codecov.yml * Update Project.toml * Update test.yml * Update runtests.jl * Update test.yml
1 parent deb1b3b commit 7c86b31

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.codecov.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
codecov:
2+
notify:
3+
after_n_builds: 2

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
# continue-on-error: ${{ matrix.version == 'nightly' }} # Allow nightly to fail and workflow still count as completed
4949
- uses: julia-actions/julia-processcoverage@v1
5050
with:
51-
directories: src,lib/ControlSystemsBase/src
51+
directories: src,lib/ControlSystemsBase/src,lib/ControlSystemsBase/ext
5252
if: ${{ matrix.version == '1' }}
5353
- uses: codecov/codecov-action@v3
5454
if: ${{ matrix.version == '1' }}

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ DelayDiffEq = "5.31"
2626
DiffEqCallbacks = "2.16"
2727
ForwardDiff = "0.10"
2828
Hungarian = "0.6, 0.7"
29-
OrdinaryDiffEq = "5.2, 6.0"
29+
OrdinaryDiffEq = "~6.60"
3030
RecipesBase = "1"
3131
Reexport = "1"
3232
StaticArrays = "1"

test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ end
2727
if GROUP == "All"
2828
for GROUP in readdir(joinpath(dirname(@__DIR__), "lib")) # Loop over all subpackages
2929
subpkg_path = joinpath(dirname(@__DIR__), "lib", GROUP)
30-
Pkg.test(PackageSpec(name = GROUP, path = subpkg_path))
30+
Pkg.test(PackageSpec(name = GROUP, path = subpkg_path), coverage = true)
3131
end
3232
elseif GROUP != "ControlSystems"
3333
# dev_subpkg(GROUP) # Do this if more sub packages are added, don't forget to avoid doing it if GROUP is CSBase
3434
subpkg_path = joinpath(dirname(@__DIR__), "lib", GROUP)
35-
Pkg.test(PackageSpec(name = GROUP, path = subpkg_path))
35+
Pkg.test(PackageSpec(name = GROUP, path = subpkg_path), coverage = true)
3636
end
3737

0 commit comments

Comments
 (0)