From 1b12a5295e7c561cd09c1545046df92be9df17de Mon Sep 17 00:00:00 2001 From: "Luiz M. Faria" Date: Wed, 14 Feb 2024 17:37:25 +0100 Subject: [PATCH 1/4] trying to trigger benchmark comparison on `CI` --- src/utils.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/utils.jl b/src/utils.jl index d0fe1a6..25db90f 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -273,6 +273,11 @@ end real_and_imag(v) Return a view over the real and imaginary parts of a complex vector `v`. + +```jldoctest +v = rand(ComplexF64,10) +vr,vi = IFGF.real_and_imag(v) +``` """ function real_and_imag(v::AbstractVector{Complex{T}}) where {T<:Real} vfloat = reinterpret(T, v) From 6982950108af5ac3a3581d5d6bf218564f3934d1 Mon Sep 17 00:00:00 2001 From: "Luiz M. Faria" Date: Wed, 14 Feb 2024 17:37:25 +0100 Subject: [PATCH 2/4] fix doctest --- src/utils.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/utils.jl b/src/utils.jl index 25db90f..ae92f55 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -275,8 +275,10 @@ end Return a view over the real and imaginary parts of a complex vector `v`. ```jldoctest -v = rand(ComplexF64,10) -vr,vi = IFGF.real_and_imag(v) +julia> v = [1.0 + 2.0im, 3.0 + 4.0im]; + +julia> vr,vi = IFGF.real_and_imag(v) +([1.0, 3.0], [2.0, 4.0]) ``` """ function real_and_imag(v::AbstractVector{Complex{T}}) where {T<:Real} From 1846aa4813b21f871d869aae2d87e7f1b2041312 Mon Sep 17 00:00:00 2001 From: "Luiz M. Faria" Date: Wed, 14 Feb 2024 17:39:55 +0100 Subject: [PATCH 3/4] run on PR as well --- .github/workflows/benchmark.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 5c42a1c..d14b44d 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -5,6 +5,7 @@ on: branches: - 'main' tags: '*' + pull_request: permissions: pull-requests: write From a278ad398d5c588e98bd923481759a6d54cb3a30 Mon Sep 17 00:00:00 2001 From: "Luiz M. Faria" Date: Wed, 14 Feb 2024 17:54:43 +0100 Subject: [PATCH 4/4] set benchmark to julia version `1` --- .github/workflows/benchmark.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index d14b44d..1e8ad5b 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/checkout@v2 - uses: julia-actions/setup-julia@v1 with: - version: "1.8" + version: "1" - uses: julia-actions/cache@v1 - name: Extract Package Name from Project.toml id: extract-package-name