Skip to content

Commit

Permalink
remove codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
jw3126 committed Jul 1, 2022
1 parent 7825e81 commit cd06f8c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,3 @@ jobs:
arch: ${{ matrix.arch }}
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info
fail_ci_if_error: true
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaObjects.github.io/ConstructionBase.jl/stable)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://JuliaObjects.github.io/ConstructionBase.jl/dev)
[![Build Status](https://github.com/JuliaObjects/ConstructionBase.jl/workflows/CI/badge.svg)](https://github.com/JuliaObjects/ConstructionBase.jl/actions?query=workflow%3ACI)
[![Codecov](https://codecov.io/gh/JuliaObjects/ConstructionBase.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaObjects/ConstructionBase.jl)
[![GitHub stars](https://img.shields.io/github/stars/JuliaObjects/ConstructionBase.jl?style=social)](https://github.com/JuliaObjects/ConstructionBase.jl)

ConstructionBase is a very lightwight package, that provides primitive functions for construction of objects:
Expand Down
11 changes: 2 additions & 9 deletions src/ConstructionBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -184,20 +184,13 @@ end
setproperties_object(obj, patch::NamedTuple{()}) = obj

function setproperties_object(obj, patch)
check_properties_are_fields_except_old_julia(obj)::Nothing
check_properties_are_fields(obj)
nt = getproperties(obj)
nt_new = merge(nt, patch)
check_patch_properties_exist(nt_new, nt, obj, patch)::Nothing
check_patch_properties_exist(nt_new, nt, obj, patch)
args = Tuple(nt_new) # old julia inference prefers if we wrap in Tuple
constructorof(typeof(obj))(args...)
end
if VERSION < v"1.3"
# on old julia versions check_properties_are_fields
# trips inference of setproperties
check_properties_are_fields_except_old_julia(_) = nothing
else
check_properties_are_fields_except_old_julia(obj) = check_properties_are_fields(obj)
end

include("nonstandard.jl")
include("functions.jl")
Expand Down

0 comments on commit cd06f8c

Please sign in to comment.