Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
tags: '*'
jobs:
test:
permissions:
contents: read
id-token: write
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -32,7 +35,7 @@ jobs:
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
- uses: actions/cache@v4
env:
cache-name: cache-artifacts
with:
Expand All @@ -47,9 +50,12 @@ jobs:
env:
JULIA_NUM_THREADS: 4
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v5
with:
file: lcov.info
files: lcov.info
# Public fork pull requests use tokenless upload; repository jobs use OIDC.
use_oidc: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
fail_ci_if_error: true
# docs:
# name: Documentation
# runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions src/PooledArrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ end
PooledArray{T}(d, signed=signed, compress=compress)

# Construct an empty PooledVector of a specific type
@inline PooledArray(t::Type) = PooledArray(Array(t,0))
@inline PooledArray(t::Type, r::Type) = PooledArray(Array(t,0), r)
@inline PooledArray(t::Type) = PooledArray(Array{t}(undef,0))
@inline PooledArray(t::Type, r::Type) = PooledArray(Array{t}(undef,0), r)

##############################################################################
##
Expand Down
5 changes: 5 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ end
@testset "PooledArrays" begin
@test eltype(PooledArray(Int[])) === Int

@test PooledArray(Int) == Int[]
@test PooledArray(Int) isa PooledVector{Int, UInt32}
@test PooledArray(Int, UInt64) == Int[]
@test PooledArray(Int, UInt64) isa PooledVector{Int, UInt64}

a = rand(10)
b = rand(10,10)
c = rand(1:10, 1000)
Expand Down
Loading