Skip to content

Commit 65c4e5a

Browse files
authored
Version 0.12.8 (#472)
This adds the support for ColorTypes v0.11. This also modifies the CI settings and removes `@assert`s from the precompilation script.
1 parent a4886a0 commit 65c4e5a

4 files changed

Lines changed: 15 additions & 13 deletions

File tree

.github/workflows/UnitTest.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ jobs:
1717
matrix:
1818
julia-version: ['1.0', '1', 'nightly']
1919
os: [ubuntu-latest, windows-latest, macOS-latest]
20+
fail-fast: false
2021

2122
steps:
22-
- uses: actions/checkout@v1.0.0
23+
- uses: actions/checkout@v2
2324
- name: "Set up Julia"
2425
uses: julia-actions/setup-julia@v1
2526
with:
@@ -30,7 +31,7 @@ jobs:
3031
env:
3132
cache-name: cache-artifacts
3233
with:
33-
path: ~/.julia/artifacts
34+
path: ~/.julia/artifacts
3435
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
3536
restore-keys: |
3637
${{ runner.os }}-test-${{ env.cache-name }}-

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name = "Colors"
22
uuid = "5ae59095-9a9b-59fe-a467-6f913c188581"
3-
version = "0.12.7"
3+
version = "0.12.8"
44

55
[deps]
66
ColorTypes = "3da002f7-5984-5a60-b8a6-cbb66c0b333f"
77
FixedPointNumbers = "53c48c17-4a7d-5ca2-90c5-79b7896eea93"
88
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
99

1010
[compat]
11-
ColorTypes = "0.10"
11+
ColorTypes = "0.10, 0.11"
1212
FixedPointNumbers = "0.6, 0.7, 0.8"
1313
Reexport = "0.2, 1.0"
1414
julia = "1"

src/precompile.jl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@ function _precompile_()
77
# conversions
88
## to RGB
99
for T in eltypes, F in feltypes, C in (HSV,LCHab,LCHuv,Lab,Luv,XYZ)
10-
@assert precompile(Tuple{typeof(convert),Type{RGB{T}},C{F}})
10+
precompile(Tuple{typeof(convert),Type{RGB{T}},C{F}})
1111
end
1212
## to XYZ
1313
for T in feltypes, F in feltypes, C in (HSV,LCHab,LCHuv,Lab,Luv,XYZ,RGB)
14-
@assert precompile(Tuple{typeof(convert),Type{XYZ{T}},C{F}})
14+
precompile(Tuple{typeof(convert),Type{XYZ{T}},C{F}})
1515
end
1616
for T in feltypes, F in (N0f8, N0f16)
17-
@assert precompile(Tuple{typeof(convert),Type{XYZ{T}},RGB{F}})
17+
precompile(Tuple{typeof(convert),Type{XYZ{T}},RGB{F}})
1818
end
1919
# parse
20-
@assert precompile(Tuple{typeof(parse),Type{ColorTypes.Colorant},String})
21-
@assert precompile(Tuple{typeof(parse),Type{RGB{N0f8}},String})
22-
@assert precompile(Tuple{typeof(parse),Type{RGBA{N0f8}},String})
20+
precompile(Tuple{typeof(parse),Type{ColorTypes.Colorant},String})
21+
precompile(Tuple{typeof(parse),Type{RGB{N0f8}},String})
22+
precompile(Tuple{typeof(parse),Type{RGBA{N0f8}},String})
2323
# colordiff
2424
for T in eltypes
25-
@assert precompile(Tuple{typeof(colordiff),RGB{T},RGB{T}})
25+
precompile(Tuple{typeof(colordiff),RGB{T},RGB{T}})
2626
end
27-
@assert precompile(Tuple{typeof(colormap),String})
28-
@assert precompile(Tuple{typeof(distinguishable_colors),Int})
27+
precompile(Tuple{typeof(colormap),String})
28+
precompile(Tuple{typeof(distinguishable_colors),Int})
2929
end

test/conversion.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ end
193193

194194
# Issue #257
195195
c = RGB{Float16}(0.9473,0.962,0.9766)
196+
convert(HSI, c)
196197
hsi = convert(HSI, c)
197198
@test hsi.i > 0.96 && hsi.h 210
198199

0 commit comments

Comments
 (0)