diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 1e8a051e..ec3b005a 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,4 +7,4 @@ updates: interval: "weekly" ignore: - dependency-name: "crate-ci/typos" - update-types: ["version-update:semver-patch"] + update-types: ["version-update:semver-patch", "version-update:semver-minor"] diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 2903b709..9173becd 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -42,6 +42,8 @@ jobs: - uses: julia-actions/julia-processcoverage@v1 with: directories: src,ext - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4 with: file: lcov.info + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml index 6a08fca1..00f2aea7 100644 --- a/.github/workflows/Documentation.yml +++ b/.github/workflows/Documentation.yml @@ -24,6 +24,8 @@ jobs: DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key run: julia --project=docs/ --code-coverage=user docs/make.jl - uses: julia-actions/julia-processcoverage@v1 - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4 with: file: lcov.info + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true diff --git a/.github/workflows/Downstream.yml b/.github/workflows/Downstream.yml index 0ba79820..f6c2e3bb 100644 --- a/.github/workflows/Downstream.yml +++ b/.github/workflows/Downstream.yml @@ -61,6 +61,8 @@ jobs: exit(0) # Exit immediately, as a success end - uses: julia-actions/julia-processcoverage@v1 - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4 with: file: lcov.info + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true diff --git a/.github/workflows/SpellCheck.yml b/.github/workflows/SpellCheck.yml index 473706be..9246edd2 100644 --- a/.github/workflows/SpellCheck.yml +++ b/.github/workflows/SpellCheck.yml @@ -10,4 +10,4 @@ jobs: - name: Checkout Actions Repository uses: actions/checkout@v4 - name: Check spelling - uses: crate-ci/typos@v1.17.2 \ No newline at end of file + uses: crate-ci/typos@v1.18.0 \ No newline at end of file diff --git a/Project.toml b/Project.toml index fc448943..21e7a199 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "RecursiveArrayTools" uuid = "731186ca-8d62-57ce-b412-fbd966d074cd" authors = ["Chris Rackauckas "] -version = "3.8.0" +version = "3.8.1" [deps] Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e" diff --git a/src/array_partition.jl b/src/array_partition.jl index 0bfdd68b..23ab35b9 100644 --- a/src/array_partition.jl +++ b/src/array_partition.jl @@ -219,6 +219,7 @@ Base.@propagate_inbounds function Base.getindex(A::ArrayPartition, i::Int) return A.x[j][length(A.x[j]) + i] end end + throw(BoundsError(A, i)) end """ diff --git a/test/partitions_test.jl b/test/partitions_test.jl index 9f7aeb59..15c31655 100644 --- a/test/partitions_test.jl +++ b/test/partitions_test.jl @@ -1,6 +1,7 @@ using RecursiveArrayTools, Test, Statistics, ArrayInterface A = (rand(5), rand(5)) p = ArrayPartition(A) +@inferred p[1] @test (p.x[1][1], p.x[2][1]) == (p[1], p[6]) p = ArrayPartition(A, Val{true})