Skip to content

Commit 6db25ec

Browse files
authored
Add CODECOV_TOKEN; add Aqua; resolve unbound; Random compat; to v0.8.1 (#85)
* Add CODECOV_TOKEN * Resolve unbound type param * Add Aqua test * Add deps for Random; to v0.8.1 * Add Aqua badge * Update compat * compat
1 parent 69a4e01 commit 6db25ec

File tree

9 files changed

+39
-10
lines changed

9 files changed

+39
-10
lines changed

.github/dependabot.yml

-2
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,3 @@ updates:
66
directory: "/"
77
schedule:
88
interval: "weekly"
9-
assignees:
10-
- "JeffFessler"

.github/workflows/ci.yml

+17
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,33 @@ jobs:
2727
os: [ubuntu-latest, windows-latest, macOS-latest]
2828
steps:
2929
- uses: actions/checkout@v4
30+
3031
# - name: "Set up Julia"
3132
- uses: julia-actions/setup-julia@latest
3233
with:
3334
version: ${{ matrix.version }}
35+
36+
- name: Cache artifacts
37+
uses: actions/cache@v4
38+
env:
39+
cache-name: cache-artifacts
40+
with:
41+
path: ~/.julia/artifacts
42+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
43+
restore-keys: |
44+
${{ runner.os }}-test-${{ env.cache-name }}-
45+
${{ runner.os }}-test-
46+
${{ runner.os }}-
47+
3448
# - name: "Unit Test"
3549
- uses: julia-actions/julia-buildpkg@latest
3650
- uses: julia-actions/julia-runtest@latest
51+
3752
# - name: "Cover"
3853
- uses: julia-actions/julia-processcoverage@v1
3954
- uses: codecov/codecov-action@v4
4055
if: ${{ matrix.version == '1' && matrix.os == 'ubuntu-latest' }}
4156
with:
4257
file: lcov.info
58+
env:
59+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

Project.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
name = "ImagePhantoms"
22
uuid = "71a99df6-f52c-4da1-bd2a-69d6f37f3252"
33
authors = ["Jeff Fessler <[email protected]> and contributors"]
4-
version = "0.8"
4+
version = "0.8.1"
55

66
[deps]
77
LazyGrids = "7031d0ef-c40d-4431-b2f8-61a8d2f650db"
88
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
99
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
1010

1111
[compat]
12-
LazyGrids = "0.5, 1"
12+
LazyGrids = "1"
13+
Random = "1"
1314
SpecialFunctions = "1.8, 2"
1415
julia = "1.10"

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ https://github.com/JuliaImageRecon/ImagePhantoms.jl
88
[![license][license-img]][license-url]
99
[![docs-stable][docs-stable-img]][docs-stable-url]
1010
[![docs-dev][docs-dev-img]][docs-dev-url]
11+
[![Aqua QA][aqua-img]][aqua-url]
1112
[![code-style][code-blue-img]][code-blue-url]
1213
<img src="https://github.com/JuliaImageRecon/ImagePhantoms.jl/blob/main/docs/src/assets/logo.svg" alt="logo" width="150"/>
1314

@@ -154,3 +155,5 @@ Tested with Julia ≥ 1.10.
154155
[docs-dev-url]: https://JuliaImageRecon.github.io/ImagePhantoms.jl/dev
155156
[license-img]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat
156157
[license-url]: LICENSE
158+
[aqua-img]: https://img.shields.io/badge/Aqua.jl-%F0%9F%8C%A2-aqua.svg
159+
[aqua-url]: https://github.com/JuliaTesting/Aqua.jl

docs/Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1111
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
1212

1313
[compat]
14-
ImageGeoms = "0.10"
14+
ImageGeoms = "0.11"

src/object.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@ function Object(
116116
shape::AbstractShape{D},
117117
_center::NTuple{D,RealU} = _tuple(0, D),
118118
_width::NTuple{D,RealU} = _tuple(1, D),
119-
_angle::Union{RealU, NTuple{Da,RealU}} = _tuple(0, D == 2 ? 1 : 3),
119+
_angle::Union{RealU, NTuple{Da,RealU}} where {Da} = _tuple(0, D == 2 ? 1 : 3),
120120
_value::Number = 1f0 ;
121121
center::NTuple{D,RealU} = _center,
122122
width::NTuple{D,RealU} = _width,
123-
angle::Union{RealU, NTuple{Da,RealU}} = _angle,
123+
angle::Union{RealU, NTuple{Da,RealU}} where {Da} = _angle,
124124
value::Number = _value,
125-
) where {D,Da}
125+
) where {D}
126126
Object{typeof(shape)}(center, width, angle, value)
127127
end
128128

test/Project.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[deps]
2+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
23
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
34
ImageGeoms = "9ee76f2b-840d-4475-b6d6-e485c9297852"
45
LazyGrids = "7031d0ef-c40d-4431-b2f8-61a8d2f650db"
@@ -8,4 +9,4 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
89
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
910

1011
[compat]
11-
ImageGeoms = "0.10"
12+
ImageGeoms = "0.11"

test/aqua.jl

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
using ImagePhantoms: ImagePhantoms
2+
import Aqua
3+
using Test: @testset
4+
5+
@testset "aqua" begin
6+
Aqua.test_all(ImagePhantoms)
7+
end

test/runtests.jl

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# runtests.jl
22

33
using Test: @test, @testset, detect_ambiguities
4-
using ImagePhantoms
4+
using ImagePhantoms: ImagePhantoms
5+
6+
include("aqua.jl")
57

68
include("helper.jl")
79

0 commit comments

Comments
 (0)