Skip to content

Commit

Permalink
try make codecov look at results from all test groups (#907)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
baggepinnen committed Dec 12, 2023
1 parent deb1b3b commit 7c86b31
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
codecov:
notify:
after_n_builds: 2
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
# continue-on-error: ${{ matrix.version == 'nightly' }} # Allow nightly to fail and workflow still count as completed
- uses: julia-actions/julia-processcoverage@v1
with:
directories: src,lib/ControlSystemsBase/src
directories: src,lib/ControlSystemsBase/src,lib/ControlSystemsBase/ext
if: ${{ matrix.version == '1' }}
- uses: codecov/codecov-action@v3
if: ${{ matrix.version == '1' }}
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ DelayDiffEq = "5.31"
DiffEqCallbacks = "2.16"
ForwardDiff = "0.10"
Hungarian = "0.6, 0.7"
OrdinaryDiffEq = "5.2, 6.0"
OrdinaryDiffEq = "~6.60"
RecipesBase = "1"
Reexport = "1"
StaticArrays = "1"
Expand Down
4 changes: 2 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ end
if GROUP == "All"
for GROUP in readdir(joinpath(dirname(@__DIR__), "lib")) # Loop over all subpackages
subpkg_path = joinpath(dirname(@__DIR__), "lib", GROUP)
Pkg.test(PackageSpec(name = GROUP, path = subpkg_path))
Pkg.test(PackageSpec(name = GROUP, path = subpkg_path), coverage = true)
end
elseif GROUP != "ControlSystems"
# dev_subpkg(GROUP) # Do this if more sub packages are added, don't forget to avoid doing it if GROUP is CSBase
subpkg_path = joinpath(dirname(@__DIR__), "lib", GROUP)
Pkg.test(PackageSpec(name = GROUP, path = subpkg_path))
Pkg.test(PackageSpec(name = GROUP, path = subpkg_path), coverage = true)
end

0 comments on commit 7c86b31

Please sign in to comment.