Skip to content

Commit 37af17d

Browse files
authored
skip CI based on files modified (#5)
1 parent 34bcb04 commit 37af17d

File tree

3 files changed

+17
-8
lines changed

3 files changed

+17
-8
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,18 @@ on:
33
pull_request:
44
branches:
55
- master
6+
paths-ignore:
7+
- 'LICENSE.md'
8+
- 'README.md'
9+
- '.github/workflows/TagBot.yml'
610
push:
711
branches:
812
- master
913
tags: '*'
14+
paths-ignore:
15+
- 'LICENSE.md'
16+
- 'README.md'
17+
- '.github/workflows/TagBot.yml'
1018
jobs:
1119
test:
1220
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ julia> addprocs(2)
2525

2626
julia> @everywhere using ParallelUtilities
2727

28-
julia> pmapreduce(x -> ones(2).*myid(), x -> hcat(x...), 1:nworkers())
28+
julia> pmapreduce(x -> ones(2) .* myid(), x -> hcat(x...), 1:nworkers())
2929
2×2 Array{Float64,2}:
3030
2.0 3.0
3131
2.0 3.0
3232

33-
julia> pmapreduce_commutative(x -> ones(2).*myid(), sum, 1:nworkers())
33+
julia> pmapreduce_commutative(x -> ones(2) .* myid(), sum, 1:nworkers())
3434
2-element Array{Float64,1}:
3535
5.0
3636
5.0
3737

38-
julia> pmapsum(x -> ones(2).*myid(), 1:nworkers())
38+
julia> pmapsum(x -> ones(2) .* myid(), 1:nworkers())
3939
2-element Array{Float64,1}:
4040
5.0
4141
5.0

src/productsplit.jl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
ParallelUtilities.AbstractConstrainedProduct{T,N}
2+
AbstractConstrainedProduct{T,N}
33
4-
Supertype of [`ParallelUtilities.ProductSplit`](@ref) and [`ParallelUtilities.ProductSection`](@ref).
4+
Supertype of [`ProductSplit`](@ref) and [`ProductSection`](@ref).
55
"""
66
abstract type AbstractConstrainedProduct{T,N} end
77
Base.eltype(::AbstractConstrainedProduct{T}) where {T} = T
@@ -183,9 +183,9 @@ function Base.first(ps::AbstractConstrainedProduct)
183183
isempty(ps) ? nothing : @inbounds _first(ps.iterators, childindex(ps, ps.firstind)...)
184184
end
185185

186-
Base.@propagate_inbounds function _first(t::Tuple,ind::Integer,rest::Integer...)
186+
Base.@propagate_inbounds function _first(t::Tuple, ind::Integer, rest::Integer...)
187187
@boundscheck (1 <= ind <= length(first(t))) || throw(BoundsError(first(t),ind))
188-
(@inbounds first(t)[ind], _first(Base.tail(t),rest...)...)
188+
(@inbounds first(t)[ind], _first(Base.tail(t), rest...)...)
189189
end
190190
_first(::Tuple{}) = ()
191191

@@ -871,7 +871,7 @@ function procrange_recast(ps::AbstractConstrainedProduct, np_new::Integer)
871871
end
872872

873873
"""
874-
localindex(ps::ProductSplit{T}, val::T) where {T}
874+
localindex(ps::AbstractConstrainedProduct{T}, val::T) where {T}
875875
876876
Return the index of `val` in `ps`. Return `nothing` if the value
877877
is not found.
@@ -899,6 +899,7 @@ function localindex(ps::AbstractConstrainedProduct{T}, val::T) where {T}
899899
indflat - ps.firstind + 1
900900
end
901901

902+
# this is only needed because first and last return nothing if the ProductSplit is empty
902903
localindex(::AbstractConstrainedProduct, ::Nothing) = nothing
903904

904905
function localindex(iterators::Tuple, val::Tuple, np::Integer, p::Integer)

0 commit comments

Comments
 (0)